tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.uunf: 15.0.0 → 15.1.0
Vincent Laporte
2 years ago
cec13baa
12f69cd4
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
uunf
default.nix
+7
-5
pkgs/development/ocaml-modules/uunf/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, cmdliner
1
1
+
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf, cmdliner
2
2
, cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1"
3
3
+
, version ? if lib.versionAtLeast ocaml.version "4.14" then "15.1.0" else "15.0.0"
3
4
}:
4
5
5
6
let
6
7
pname = "uunf";
7
8
webpage = "https://erratique.ch/software/${pname}";
8
8
-
version = "15.0.0";
9
9
+
hash = {
10
10
+
"15.0.0" = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
11
11
+
"15.1.0" = "sha256-D8yvb7hVWaYxMqMZ5089/5tWDfvyGXKUOjhfU/4zSeQ=";
12
12
+
}."${version}";
9
13
in
10
14
11
15
if lib.versionOlder ocaml.version "4.03"
···
18
22
19
23
src = fetchurl {
20
24
url = "${webpage}/releases/${pname}-${version}.tbz";
21
21
-
sha256 = "sha256-B/prPAwfqS8ZPS3fyDDIzXWRbKofwOCyCfwvh9veuug=";
25
25
+
inherit hash;
22
26
};
23
27
24
28
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
25
29
buildInputs = [ topkg uutf ]
26
30
++ lib.optional cmdlinerSupport cmdliner;
27
27
-
28
28
-
propagatedBuildInputs = [ uchar ];
29
31
30
32
strictDeps = true;
31
33