2024-11-30 09:39:53 +00:00
|
|
|
{ withSystem, inputs, ... }:
|
|
|
|
{
|
|
|
|
perSystem =
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-12-11 16:19:01 +00:00
|
|
|
lib,
|
2024-11-30 09:39:53 +00:00
|
|
|
inputs',
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-12-11 16:19:01 +00:00
|
|
|
devShells.idris2 =
|
|
|
|
let
|
2025-01-09 15:58:16 +00:00
|
|
|
libPackages = with pkgs; [
|
|
|
|
readline70
|
|
|
|
openssl
|
|
|
|
];
|
2024-12-11 16:19:01 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|