mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
ocamlPackages.safepass: 1.3 -> 2.0
This commit is contained in:
parent
aad01d5831
commit
5fc012ecab
@ -1,11 +1,23 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
let param =
|
||||||
name = "ocaml-safepass-1.3";
|
if stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||||
src = fetchurl {
|
then {
|
||||||
|
version = "2.0";
|
||||||
|
url = http://forge.ocamlcore.org/frs/download.php/1615/ocaml-safepass-2.0.tgz;
|
||||||
|
sha256 = "1zxx3wcyzhxxvm5w9c21y7hpa11h67paaaz9mfsyiqk6fs6hcvmw";
|
||||||
|
} else {
|
||||||
|
version = "1.3";
|
||||||
url = http://forge.ocamlcore.org/frs/download.php/1432/ocaml-safepass-1.3.tgz;
|
url = http://forge.ocamlcore.org/frs/download.php/1432/ocaml-safepass-1.3.tgz;
|
||||||
sha256 = "0lb8xbpyc5d1zml7s7mmcr6y2ipwdp7qz73lkv9asy7dyi6cj15g";
|
sha256 = "0lb8xbpyc5d1zml7s7mmcr6y2ipwdp7qz73lkv9asy7dyi6cj15g";
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ocaml${ocaml.version}-safepass-${param.version}";
|
||||||
|
src = fetchurl {
|
||||||
|
inherit (param) url sha256;
|
||||||
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild ];
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user