depot/third_party/nixpkgs/pkgs/development/tools/ocaml/obuild/default.nix
Default email d87170d3f2 Project import generated by Copybara.
GitOrigin-RevId: 967d40bec14be87262b21ab901dbace23b7365db
2021-07-18 23:22:44 +02:00

31 lines
824 B
Nix

{ lib, stdenv, fetchzip, ocaml }:
stdenv.mkDerivation rec {
pname = "obuild";
version = "0.1.10";
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";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ volth ];
};
}