-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
36 lines (32 loc) · 890 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
29
30
31
32
33
34
35
36
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
inputs:
with inputs;
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
cargoNix = pkgs.callPackage ./Cargo.nix { inherit pkgs; };
agda-index = cargoNix.rootCrate.build;
in
rec {
packages = {
inherit agda-index;
default = packages.agda-index;
};
devShells.default = pkgs.mkShell { inputsFrom = [ packages.default ]; };
devShells.bootstrap = pkgs.mkShell { buildInputs = [ pkgs.crate2nix ]; };
apps = {
agda-index = {
type = "app";
program = "${agda-index}/bin/agda-index";
};
default = apps.agda-index;
};
}
);
}