3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/obuild/default.nix

34 lines
852 B
Nix
Raw Normal View History

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