Add raku to idris dev environment

This commit is contained in:
Nathan McCarty 2024-12-11 16:19:01 +00:00
parent 029bd4d807
commit 3b2d2617f4

View file

@ -4,12 +4,31 @@
{ {
config, config,
pkgs, pkgs,
lib,
inputs', inputs',
... ...
}: }:
{ {
devShells.idris2 = pkgs.mkShell { devShells.idris2 =
buildInputs = with pkgs; [ let
rakudo_env = pkgs.buildEnv {
name = "rakudo-env";
paths = with pkgs; [
rakudo
zef
];
pathsToLink = [
"/bin"
"/lib"
"/share"
];
};
libPackages = with pkgs; [ readline70 ];
in
pkgs.mkShell {
buildInputs =
with pkgs;
[
# Idris toolchain # Idris toolchain
inputs'.nixpkgs-unstable.legacyPackages.idris2Packages.pack inputs'.nixpkgs-unstable.legacyPackages.idris2Packages.pack
inputs'.nixpkgs-unstable.legacyPackages.idris2 inputs'.nixpkgs-unstable.legacyPackages.idris2
@ -18,7 +37,12 @@
gnumake gnumake
chez chez
rlwrap rlwrap
]; rakudo_env
]
++ libPackages;
shellHook = ''
export LD_LIBRARY_PATH=${lib.makeLibraryPath libPackages}
'';
}; };
}; };
} }