ocamlPackages.angstrom: 0.4.0 -> 0.5.1
This commit is contained in:
parent
068341b1c7
commit
9c68a8b2d2
@ -1,14 +1,25 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, ocamlbuild, cstruct, result, findlib, ocaml_oasis }:
|
{ stdenv, fetchFromGitHub, ocaml, ocamlbuild, cstruct, result, findlib, ocaml_oasis }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let param =
|
||||||
|
if stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||||
|
then {
|
||||||
|
version = "0.5.1";
|
||||||
|
sha256 = "0rm79xyszy9aqvflcc13y9xiya82z31fzmr3b3hx91pmqviymhgc";
|
||||||
|
} else {
|
||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
|
sha256 = "019s3jwhnswa914bgj1fa6q67k0bl2ahqdaqfnavcbyii8763kh2";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
inherit (param) version;
|
||||||
name = "ocaml-angstrom-${version}";
|
name = "ocaml-angstrom-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "inhabitedtype";
|
owner = "inhabitedtype";
|
||||||
repo = "angstrom";
|
repo = "angstrom";
|
||||||
rev = "${version}";
|
rev = "${version}";
|
||||||
sha256 = "019s3jwhnswa914bgj1fa6q67k0bl2ahqdaqfnavcbyii8763kh2";
|
inherit (param) sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
createFindlibDestdir = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user