From 8018e923c75eb5504310864f821972f794b7d554 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 13 Feb 2019 20:40:51 -0500 Subject: New upstream version 8.8.0+1.gbp069dc3b --- default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 default.nix (limited to 'default.nix') 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 {}), 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}/"; +} -- cgit v1.2.3