ocamlPackages.tcs-lib: 0.3 → 0.6
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
fetchpatch,
|
||||
buildOasisPackage,
|
||||
ounit,
|
||||
tcslib,
|
||||
tcs-lib,
|
||||
extlib,
|
||||
ocaml-sat-solvers,
|
||||
}:
|
||||
|
||||
@@ -29,9 +30,15 @@ buildOasisPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
# Compatibility with tcs-lib ≥ 0.6
|
||||
postPatch = ''
|
||||
substituteInPlace _oasis --replace-fail TCSLib tcs-lib
|
||||
'';
|
||||
|
||||
buildInputs = [ ounit ];
|
||||
propagatedBuildInputs = [
|
||||
tcslib
|
||||
extlib
|
||||
tcs-lib
|
||||
ocaml-sat-solvers
|
||||
];
|
||||
|
||||
|
||||
29
pkgs/development/ocaml-modules/tcs-lib/default.nix
Normal file
29
pkgs/development/ocaml-modules/tcs-lib/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
fetchurl,
|
||||
buildDunePackage,
|
||||
num,
|
||||
}:
|
||||
|
||||
buildDunePackage (finalAttrs: {
|
||||
pname = "tcs-lib";
|
||||
version = "0.6";
|
||||
|
||||
minimalOCamlVersion = "4.03";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/tcsprojects/tcslib/releases/download/v${finalAttrs.version}/tcs-lib-${finalAttrs.version}.tbz";
|
||||
hash = "sha256-DBjdIOUrYbfN3VlTaQMIGezPpOpzv9vtmDmBVYZigSI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
num
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/tcsprojects/tcslib";
|
||||
description = "Multi-purpose library for OCaml";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ mgttlinger ];
|
||||
};
|
||||
})
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildOasisPackage,
|
||||
extlib,
|
||||
num,
|
||||
}:
|
||||
|
||||
buildOasisPackage rec {
|
||||
pname = "tcslib";
|
||||
version = "0.3";
|
||||
|
||||
minimumOCamlVersion = "4.03.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tcsprojects";
|
||||
repo = "tcslib";
|
||||
rev = "v${version}";
|
||||
sha256 = "05g6m82blsccq8wx8knxv6a5fzww7hi624jx91f9h87nk2fsplhi";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
extlib
|
||||
num
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/tcsprojects/tcslib";
|
||||
description = "Multi-purpose library for OCaml";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ mgttlinger ];
|
||||
};
|
||||
}
|
||||
@@ -2001,7 +2001,7 @@ let
|
||||
|
||||
tcpip = callPackage ../development/ocaml-modules/tcpip { };
|
||||
|
||||
tcslib = callPackage ../development/ocaml-modules/tcslib { };
|
||||
tcs-lib = callPackage ../development/ocaml-modules/tcs-lib { };
|
||||
|
||||
tdigest = callPackage ../development/ocaml-modules/tdigest { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user