ocaml-topkg: init at 0.7.8

This commit is contained in:
Vincent Laporte 2016-07-17 17:26:22 +02:00
parent 10767521a0
commit a99d7b1071
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ stdenv, fetchurl, ocaml, findlib, result, opam }:
let ocaml-version = stdenv.lib.getVersion ocaml; in
stdenv.mkDerivation rec {
name = "ocaml${ocaml-version}-topkg-${version}";
version = "0.7.8";
src = fetchurl {
url = "http://erratique.ch/software/topkg/releases/topkg-${version}.tbz";
sha256 = "029lbmabczpmcgkj53mc20vmpcn3f7rf7xms4xf0nywswfzsash6";
};
nativeBuildInputs = [ opam ];
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ result ];
unpackCmd = "tar xjf ${src}";
buildPhase = "ocaml -I ${findlib}/lib/ocaml/${ocaml-version}/site-lib/ pkg/pkg.ml build";
createFindlibDestdir = true;
installPhase = ''
opam-installer --script --prefix=$out topkg.install | sh
mv $out/lib/topkg $out/lib/ocaml/${ocaml-version}/site-lib/
'';
meta = {
homepage = http://erratique.ch/software/topkg;
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.vbgl ];
description = "A packager for distributing OCaml software";
inherit (ocaml.meta) platforms;
};
}

View file

@ -5393,6 +5393,8 @@ in
stringext = callPackage ../development/ocaml-modules/stringext { };
topkg = callPackage ../development/ocaml-modules/topkg { };
tsdl = callPackage ../development/ocaml-modules/tsdl { };
twt = callPackage ../development/ocaml-modules/twt { };