ocamlPackages.result: 1.2 -> 1.5
This commit is contained in:
parent
098dedb63f
commit
33ed2e9e54
@ -1,21 +1,14 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
{ lib, buildDunePackage, fetchurl }:
|
||||||
|
|
||||||
let version = "1.2"; in
|
buildDunePackage rec {
|
||||||
|
pname = "result";
|
||||||
|
version = "1.5";
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
src = fetchurl {
|
||||||
name = "ocaml${ocaml.version}-result-${version}";
|
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
|
||||||
|
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "janestreet";
|
|
||||||
repo = "result";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "1jwzpcmxwgkfsbjz9zl59v12hf1vv4r9kiifancn9p8gm206g3g0";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ];
|
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/janestreet/result";
|
homepage = "https://github.com/janestreet/result";
|
||||||
description = "Compatibility Result module";
|
description = "Compatibility Result module";
|
||||||
@ -24,7 +17,6 @@ stdenv.mkDerivation {
|
|||||||
while staying compatible with older version of OCaml should use the
|
while staying compatible with older version of OCaml should use the
|
||||||
Result module defined in this library.
|
Result module defined in this library.
|
||||||
'';
|
'';
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
platforms = ocaml.meta.platforms or [];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user