mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
ocamlPackages.ptmap: 2.0.3 → 2.0.4
Ensures compatibility with OCaml 4.07
This commit is contained in:
parent
fc570f89b5
commit
718b6d980f
|
@ -1,13 +1,22 @@
|
|||
{ stdenv, fetchzip, ocaml, findlib, obuild }:
|
||||
|
||||
let version = "2.0.3"; in
|
||||
let param =
|
||||
if stdenv.lib.versionAtLeast ocaml.version "4.07"
|
||||
then {
|
||||
version = "2.0.4";
|
||||
sha256 = "05a391m1l04zigi6ghywj7f5kxy2w6186221k7711wmg56m94yjw";
|
||||
} else {
|
||||
version = "2.0.3";
|
||||
sha256 = "19xykhqk7q25r1pj8rpfj53j2r9ls8mxi1w5m2wqshrf20gf078h";
|
||||
}
|
||||
; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml${ocaml.version}-ptmap-${version}";
|
||||
name = "ocaml${ocaml.version}-ptmap-${param.version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/backtracking/ptmap/archive/v${version}.tar.gz";
|
||||
sha256 = "19xykhqk7q25r1pj8rpfj53j2r9ls8mxi1w5m2wqshrf20gf078h";
|
||||
url = "https://github.com/backtracking/ptmap/archive/v${param.version}.tar.gz";
|
||||
inherit (param) sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib obuild ];
|
||||
|
|
Loading…
Reference in a new issue