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