diff options
author | Benjamin Barenblat <bbaren@google.com> | 2019-02-13 20:40:51 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2019-02-13 20:40:51 -0500 |
commit | 2ee22055c510a56c3d040fe023d0884b183bd68c (patch) | |
tree | 595eeed2159e90da8284b9e2d545430a61a60d04 /default.nix | |
parent | 7ecbed522b4b4a9829eb9bd7b3f36db53788a77c (diff) | |
parent | 8018e923c75eb5504310864f821972f794b7d554 (diff) |
Updated version 8.8.0+1.gbp069dc3b from 'upstream/8.8.0+1.gbp069dc3b'
with Debian dir 4ca0cfbbc73543887b10ee2613b222f51702e276
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..8cd0cac --- /dev/null +++ b/default.nix @@ -0,0 +1,28 @@ +{ pkgs ? (import <nixpkgs> {}), coq-version-or-url, shell ? false }: + +let + coq-version-parts = builtins.match "([0-9]+).([0-9]+)" coq-version-or-url; + coqPackages = + if coq-version-parts == null then + pkgs.mkCoqPackages (import (fetchTarball coq-version-or-url) {}) + else + pkgs."coqPackages_${builtins.concatStringsSep "_" coq-version-parts}"; +in + +with coqPackages; + +pkgs.stdenv.mkDerivation { + + name = "aac-tactics"; + + buildInputs = with coq.ocamlPackages; [ ocaml findlib camlp5 ] + ++ pkgs.lib.optionals shell [ merlin ocp-indent ocp-index ]; + + propagatedBuildInputs = [ + coq + ]; + + src = if shell then null else ./.; + + installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; +} |