-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
35 lines (35 loc) · 960 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
{
description = "gitrees";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.11;
flake-utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, flake-utils }:
with flake-utils.lib; eachSystem allSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
coq = pkgs.coq_8_17;
coqPkgs = pkgs.coqPackages_8_17;
in {
packages = {
coq-artifact = coqPkgs.mkCoqDerivation {
pname = "coq-artifact";
version = "main";
src = ./.;
buildPhase = "make";
propagatedBuildInputs = [
coqPkgs.stdpp
coqPkgs.iris
coqPkgs.equations
];
};
};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
coq
];
inputsFrom = [ self.packages.${system}.coq-artifact ];
};
});
}