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

36 lines
855 B
Nix
Raw Normal View History

2021-10-30 11:21:10 +00:00
{ lib, stdenv, fetchFromGitHub, 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";
2021-10-30 11:21:10 +00:00
src = fetchFromGitHub {
owner = "ocaml-obuild";
repo = "obuild";
rev = "obuild-v${version}";
sha256 = "sha256-dqWP9rwWmr7i3O29v/kipJL01B3qQozaToOFCdfTWZU=";
};
strictDeps = true;
nativeBuildInputs = [ 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";
2021-10-30 11:21:10 +00:00
platforms = ocaml.meta.platforms or [ ];
description = "Simple package build system for OCaml";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ ];
};
}