2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocamlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "obuild";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ocaml-obuild";
|
|
|
|
repo = "obuild";
|
|
|
|
rev = "obuild-v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-me9/FVD7S0uPIpFZzcxDfYKVWn9ifq6JryBAGCo681I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = with ocamlPackages; [ ocaml findlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple package build system for OCaml";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|