diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-01-08 17:25:54 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-01-21 11:26:26 +0100 |
commit | f3704de6497e269f2de2e99b3b9eaadbd6630c22 (patch) | |
tree | 35ba8ea6c1b0e760836c0a88c8ed2abd1dd9d229 /pkgs/development/tools | |
parent | 223474d8acd83d833997414318503eb941b11e57 (diff) | |
download | nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.tar nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.tar.gz nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.tar.bz2 nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.tar.lz nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.tar.xz nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.tar.zst nixlib-f3704de6497e269f2de2e99b3b9eaadbd6630c22.zip |
dune: let dune install itself
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/ocaml/dune/default.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pkgs/development/tools/ocaml/dune/default.nix b/pkgs/development/tools/ocaml/dune/default.nix index ef0f5c4fabd4..031cbcca21d8 100644 --- a/pkgs/development/tools/ocaml/dune/default.nix +++ b/pkgs/development/tools/ocaml/dune/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocaml, findlib, opaline }: +{ stdenv, fetchurl, ocaml, findlib }: if !stdenv.lib.versionAtLeast ocaml.version "4.02" then throw "dune is not available for OCaml ${ocaml.version}" @@ -15,15 +15,13 @@ stdenv.mkDerivation rec { buildInputs = [ ocaml findlib ]; buildFlags = [ "release" ]; + makeFlags = [ + "PREFIX=${placeholder "out"}" + "LIBDIR=$(OCAMLFIND_DESTDIR)" + ]; dontAddPrefix = true; - installPhase = '' - runHook preInstall - ${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR - runHook postInstall - ''; - meta = { homepage = "https://dune.build/"; description = "A composable build system"; |