-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
28 lines (26 loc) · 823 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
description = "Well-typed containers for Idris 2";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.idris = {
url = "github:L-as/Idris2";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, idris, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
rec {
packages = idris.buildIdris.${system} {
projectName = "typed-containers";
src = "${self}";
idrisLibraries = [];
};
defaultPackage = packages.build;
devShell = pkgs.mkShell {
buildInputs = [ idris.packages.${system}.idris2 pkgs.rlwrap ];
shellHook = ''
alias idris2="rlwrap -s 1000 idris2 --no-banner"
'';
};
}
);
}