2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, ocaml }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "obuild";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "0.1.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocaml-obuild/obuild/archive/obuild-v${version}.tar.gz";
|
|
|
|
sha256 = "15arsgbhk1c39vd8qhpa3pag94m44bwvzggdvkibx6hnpkv8z9bn";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs ./bootstrap
|
|
|
|
./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";
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
description = "Simple package build system for OCaml";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
maintainers = with lib.maintainers; [ volth ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|