569aff03ab
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/dune/versions
31 lines
775 B
Nix
31 lines
775 B
Nix
{ stdenv, fetchurl, ocaml, findlib, opaline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dune-${version}";
|
|
version = "1.9.2";
|
|
src = fetchurl {
|
|
url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
|
|
sha256 = "0l27d13wh3i1450kgxnhr6r977sgby1dqwsfc8cqd9mqic1mr9f2";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
buildFlags = "release";
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/ocaml/dune;
|
|
description = "A composable build system";
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
license = stdenv.lib.licenses.mit;
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|