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