System/devshells/idris2.nix

38 lines
702 B
Nix
Raw Normal View History

2024-11-30 09:39:53 +00:00
{
2025-01-13 19:53:42 +00:00
withSystem,
inputs,
...
}: {
perSystem = {
config,
pkgs,
lib,
inputs',
...
}: {
devShells.idris2 = let
libPackages = with pkgs; [
readline70
openssl
];
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
]
++ libPackages;
shellHook = ''
export LD_LIBRARY_PATH=${lib.makeLibraryPath libPackages}
'';
};
};
2024-11-30 09:39:53 +00:00
}