git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17836 from vbgl/topkg_0.7.8

ocaml-uucd: 2.0.0 → 4.0.0

commitec918dac165d29fabadf59b8eaba924d27421258 authorRok Garbas <rok@garbas.si> dateFri 19 Aug 2016, 13:48 (10 years ago) parentdb862d81e419d5
3 files changed+40−5
pkgs/development/ocaml-modules/topkg/default.nix+33 pkgs/development/ocaml-modules/uucd/default.nix+5−5 pkgs/top-level/all-packages.nix+2
pkgs/development/ocaml-modules/topkg/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl, ocaml, findlib, result, opam }:
2+
3+let ocaml-version = stdenv.lib.getVersion ocaml; in
4+
5+stdenv.mkDerivation rec {
6+ name = "ocaml${ocaml-version}-topkg-${version}";
7+ version = "0.7.8";
8+
9+ src = fetchurl {
10+ url = "http://erratique.ch/software/topkg/releases/topkg-${version}.tbz";
11+ sha256 = "029lbmabczpmcgkj53mc20vmpcn3f7rf7xms4xf0nywswfzsash6";
12+ };
13+
14+ nativeBuildInputs = [ opam ];
15+ buildInputs = [ ocaml findlib ];
16+ propagatedBuildInputs = [ result ];
17+
18+ unpackCmd = "tar xjf ${src}";
19+ buildPhase = "ocaml -I ${findlib}/lib/ocaml/${ocaml-version}/site-lib/ pkg/pkg.ml build";
20+ createFindlibDestdir = true;
21+ installPhase = ''
22+ opam-installer --script --prefix=$out topkg.install | sh
23+ mv $out/lib/topkg $out/lib/ocaml/${ocaml-version}/site-lib/
24+ '';
25+
26+ meta = {
27+ homepage = http://erratique.ch/software/topkg;
28+ license = stdenv.lib.licenses.isc;
29+ maintainers = [ stdenv.lib.maintainers.vbgl ];
30+ description = "A packager for distributing OCaml software";
31+ inherit (ocaml.meta) platforms;
32+ };
33+}
pkgs/development/ocaml-modules/uucd/default.nix+5−5
@@ -1,7 +1,7 @@
1−{stdenv, fetchurl, ocaml, findlib, opam, xmlm}:
1+{ stdenv, fetchurl, ocaml, findlib, opam, xmlm, topkg }:
22let
33 pname = "uucd";
4− version = "2.0.0";
4+ version = "4.0.0";
55 webpage = "http://erratique.ch/software/${pname}";
66 ocaml_version = (builtins.parseDrvName ocaml.name).version;
77in
@@ -11,16 +11,16 @@ stdenv.mkDerivation rec {
1111
1212 src = fetchurl {
1313 url = "${webpage}/releases/${pname}-${version}.tbz";
14− sha256 = "12lbrrdjwdxfa99pbg344dfkj51lr5d2ispcj7d7lwsqyxy6h57i";
14+ sha256 = "11cjfwa4wjhsyvzq4wl9z44xi28n49drz8nbfpx754vyfzwj3yc6";
1515 };
1616
17− buildInputs = [ ocaml findlib opam xmlm ];
17+ buildInputs = [ ocaml findlib opam topkg ];
1818
1919 createFindlibDestdir = true;
2020
2121 unpackCmd = "tar xjf $src";
2222
23− buildPhase = "ocaml ./pkg/build.ml native=true native-dynlink=true";
23+ inherit (topkg) buildPhase;
2424
2525 installPhase = ''
2626 opam-installer --script --prefix=$out ${pname}.install > install.sh
pkgs/top-level/all-packages.nix+2
@@ -5395,6 +5395,8 @@ in
53955395
53965396 stringext = callPackage ../development/ocaml-modules/stringext { };
53975397
5398+ topkg = callPackage ../development/ocaml-modules/topkg { };
5399+
53985400 tsdl = callPackage ../development/ocaml-modules/tsdl { };
53995401
54005402 twt = callPackage ../development/ocaml-modules/twt { };