2021-10-30 11:21:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocaml }:
|
2017-07-04 21:39:37 +00:00
|
|
|
|
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";
|
2017-07-04 21:39:37 +00:00
|
|
|
|
2021-10-30 11:21:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-obuild";
|
|
|
|
repo = "obuild";
|
|
|
|
rev = "obuild-v${version}";
|
|
|
|
sha256 = "sha256-dqWP9rwWmr7i3O29v/kipJL01B3qQozaToOFCdfTWZU=";
|
2017-07-04 21:39:37 +00:00
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ocaml ];
|
2017-07-04 21:39:37 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2017-07-08 10:22:39 +00:00
|
|
|
patchShebangs ./bootstrap
|
2017-07-04 21:39:37 +00:00
|
|
|
./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 = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ocaml-obuild/obuild";
|
2021-10-30 11:21:10 +00:00
|
|
|
platforms = ocaml.meta.platforms or [ ];
|
2017-07-04 21:39:37 +00:00
|
|
|
description = "Simple package build system for OCaml";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2022-06-22 22:49:35 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2017-07-04 21:39:37 +00:00
|
|
|
};
|
|
|
|
}
|