summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-11-02 19:39:22 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-11-02 19:39:22 +0100
commitb028b5f4ef03d6c3dae4cdda898c1996348c4e18 (patch)
tree6416daead9f3a5c987a0b99a1635f6aa9de4e5ed /pkgs/applications/science
parent5f49eeb935112e69f8992083ca173728a90cbf8c (diff)
downloadnixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.tar
nixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.tar.gz
nixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.tar.bz2
nixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.tar.lz
nixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.tar.xz
nixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.tar.zst
nixpkgs-b028b5f4ef03d6c3dae4cdda898c1996348c4e18.zip
coq-8.5: ease the selection of an older (patch level) version
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/logic/coq/8.5.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/applications/science/logic/coq/8.5.nix b/pkgs/applications/science/logic/coq/8.5.nix
index 9512e27080f..aae2101f50e 100644
--- a/pkgs/applications/science/logic/coq/8.5.nix
+++ b/pkgs/applications/science/logic/coq/8.5.nix
@@ -2,11 +2,22 @@
 # - The csdp program used for the Micromega tactic is statically referenced.
 #   However, coq can build without csdp by setting it to null.
 #   In this case some Micromega tactics will search the user's path for the csdp program and will fail if it is not found.
+# - The patch-level version can be specified through the `pl` argument to
+#   the derivation; it defaults to the greatest.
 
-{stdenv, fetchurl, writeText, pkgconfig, ocaml, findlib, camlp5, ncurses, lablgtk ? null, csdp ? null}:
+{ stdenv, fetchurl, writeText, pkgconfig
+, ocaml, findlib, camlp5, ncurses
+, lablgtk ? null, csdp ? null
+, pl ? "3"
+}:
 
 let
-  version = "8.5pl3";
+  version = "8.5pl${pl}";
+  sha256 = {
+   "1" = "1w2xvm6w16khfn63bp95s25hnkn2ny3w0yqg3lq63gp11aqpbyjb";
+   "2" = "0wyywia0darak2zmc5v0ra9rn0b9whwdfiahralm8v5za499s8w3";
+   "3" = "0fyk2a4fpifibq8y8jhx1891k55qnsnlygglch64sva0bph94nrh";
+  }."${pl}";
   coq-version = "8.5";
   buildIde = lablgtk != null;
   ideFlags = if buildIde then "-lablgtkdir ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2 -coqide opt" else "";
@@ -24,7 +35,7 @@ stdenv.mkDerivation {
 
   src = fetchurl {
     url = "http://coq.inria.fr/distrib/V${version}/files/coq-${version}.tar.gz";
-    sha256 = "0fyk2a4fpifibq8y8jhx1891k55qnsnlygglch64sva0bph94nrh";
+    inherit sha256;
   };
 
   buildInputs = [ pkgconfig ocaml findlib camlp5 ncurses lablgtk ];