nixpkgs/pkgs/development/tools/ocaml/obuild/default.nix

32 lines
824 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, ocaml }:
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";
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-05 18:05:09 +00:00
buildInputs = [ ocaml ];
buildPhase = ''
2017-07-08 10:22:39 +00: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 18:05:09 +00:00
platforms = ocaml.meta.platforms or [];
description = "Simple package build system for OCaml";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ volth ];
};
}