2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocamlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "opaline";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaapb";
|
|
|
|
repo = "opaline";
|
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-6htaiFIcRMUYWn0U7zTNfCyDaTgDEvPch2q57qzvND4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = with ocamlPackages; [ ocaml findlib ocamlbuild ];
|
|
|
|
buildInputs = with ocamlPackages; [ opam-file-format ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OPAm Light INstaller Engine";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|