2017-07-05 20:05:09 +02:00
|
|
|
{ stdenv, fetchzip, ocaml }:
|
2017-07-04 23:39:37 +02:00
|
|
|
|
2018-08-21 23:40:52 +02:00
|
|
|
let version = "0.1.10"; in
|
2017-07-04 23:39:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "obuild";
|
|
|
|
inherit version;
|
2017-07-04 23:39:37 +02:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocaml-obuild/obuild/archive/obuild-v${version}.tar.gz";
|
2018-08-21 23:40:52 +02:00
|
|
|
sha256 = "15arsgbhk1c39vd8qhpa3pag94m44bwvzggdvkibx6hnpkv8z9bn";
|
2017-07-04 23:39:37 +02:00
|
|
|
};
|
|
|
|
|
2017-07-05 20:05:09 +02:00
|
|
|
buildInputs = [ ocaml ];
|
2017-07-04 23:39:37 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
2017-07-08 12:22:39 +02:00
|
|
|
patchShebangs ./bootstrap
|
2017-07-04 23:39:37 +02: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 20:05:09 +02:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2017-07-04 23:39:37 +02:00
|
|
|
description = "Simple package build system for OCaml";
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ volth ];
|
|
|
|
};
|
|
|
|
}
|