ocamlPackages.re: 1.9.0 -> 1.10.4
This commit is contained in:
parent
d512720a35
commit
c164f7c021
@ -1,16 +1,29 @@
|
||||
{ lib, fetchurl, buildDunePackage, ocaml, ounit, seq }:
|
||||
|
||||
let version_sha = if lib.versionAtLeast ocaml.version "4.08"
|
||||
then
|
||||
{
|
||||
version = "1.10.4";
|
||||
sha256 = "sha256-g+s+QwCqmx3HggdJAQ9DYuqDUkdCEwUk14wgzpnKdHw=";
|
||||
}
|
||||
else
|
||||
{
|
||||
version = "1.9.0";
|
||||
sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";
|
||||
};
|
||||
in
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "re";
|
||||
version = "1.9.0";
|
||||
version = version_sha.version;
|
||||
|
||||
minimumOCamlVersion = "4.02";
|
||||
minimalOCamlVersion = "4.02";
|
||||
|
||||
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz";
|
||||
sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";
|
||||
sha256 = version_sha.sha256;
|
||||
};
|
||||
|
||||
buildInputs = lib.optional doCheck ounit;
|
||||
|
Loading…
Reference in New Issue
Block a user