git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-topkg: init at 0.7.8
commita99d7b1071d9ab31250311065052e3352fb94f14 authorVincent Laporte <Vincent.Laporte@gmail.com> dateSun 17 Jul 2016, 17:26 (10 years ago) parent1076752
2 files changed+35
pkgs/development/ocaml-modules/topkg/default.nix+33 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/top-level/all-packages.nix+2
@@ -5393,6 +5393,8 @@ in
53935393
53945394 stringext = callPackage ../development/ocaml-modules/stringext { };
53955395
5396+ topkg = callPackage ../development/ocaml-modules/topkg { };
5397+
53965398 tsdl = callPackage ../development/ocaml-modules/tsdl { };
53975399
53985400 twt = callPackage ../development/ocaml-modules/twt { };