2017-07-05 19:05:09 +01:00
|
|
|
{ stdenv, fetchzip, ocaml }:
|
2017-07-04 22:39:37 +01:00
|
|
|
|
|
|
|
let version = "0.1.8"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "obuild-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocaml-obuild/obuild/archive/obuild-v${version}.tar.gz";
|
|
|
|
sha256 = "1q1k2qqd08j1zakvydgvwgwpyn0ll7rs65gap0pvg3amnh5cp3wd";
|
|
|
|
};
|
|
|
|
|
2017-07-05 19:05:09 +01:00
|
|
|
buildInputs = [ ocaml ];
|
2017-07-04 22:39:37 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
2017-07-08 11:22:39 +01:00
|
|
|
patchShebangs ./bootstrap
|
2017-07-04 22:39:37 +01:00
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp dist/build/obuild/obuild dist/build/obuild-from-oasis/obuild-from-oasis dist/build/obuild-simple/obuild-simple $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/ocaml-obuild/obuild;
|
2017-07-05 19:05:09 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2017-07-04 22:39:37 +01:00
|
|
|
description = "Simple package build system for OCaml";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ volth ];
|
|
|
|
};
|
|
|
|
}
|