depot/third_party/nixpkgs/pkgs/development/tools/ocaml/obuild/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

33 lines
827 B
Nix

{ lib, stdenv, fetchFromGitHub, ocaml }:
stdenv.mkDerivation rec {
pname = "obuild";
version = "0.1.10";
src = fetchFromGitHub {
owner = "ocaml-obuild";
repo = "obuild";
rev = "obuild-v${version}";
sha256 = "sha256-dqWP9rwWmr7i3O29v/kipJL01B3qQozaToOFCdfTWZU=";
};
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; [ ];
};
}