git.iko.soy/typeable/nixpkgs
on master help sign in
dune: 1.4.0 -> 1.5.0 (#49848)

* dune: 1.4.0 -> 1.5.1 * reason: use dune installPhase

commit2e89de61c59ed6f302f16f026855f48f86e5a72c authorMario Rodas <marsam@users.noreply.github.com> dateFri 9 Nov 2018, 07:26 (8 years ago) parent1c49226
2 files changed+10−9
pkgs/development/compilers/reason/default.nix+2−5 pkgs/development/tools/ocaml/dune/default.nix+8−4
pkgs/development/compilers/reason/default.nix+2−5
@@ -21,12 +21,9 @@ stdenv.mkDerivation rec {
2121
2222 buildFlags = [ "build" ]; # do not "make tests" before reason lib is installed
2323
24− installPhase = ''
25− for p in reason rtop
26− do
27− ${dune.installPhase} $p.install
28− done
24+ inherit (dune) installPhase;
2925
26+ postInstall = ''
3027 wrapProgram $out/bin/rtop \
3128 --prefix PATH : "${utop}/bin" \
3229 --set OCAMLPATH $out/lib/ocaml/${ocaml.version}/site-lib:$OCAMLPATH
pkgs/development/tools/ocaml/dune/default.nix+8−4
@@ -2,10 +2,10 @@
22
33stdenv.mkDerivation rec {
44 name = "dune-${version}";
5− version = "1.4.0";
5+ version = "1.5.1";
66 src = fetchurl {
77 url = "https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz";
8− sha256 = "1fz1jx1d48yb40qan4hw25h8ia55vs7mp94a3rr7cf5gb5ap2zkj";
8+ sha256 = "1dbf7wwhr7b41g3p24qb9v5r1vvgrk6i9w8f7y7k5k527xy9jk5w";
99 };
1010
1111 buildInputs = with ocamlPackages; [ ocaml findlib ];
@@ -14,10 +14,14 @@ stdenv.mkDerivation rec {
1414
1515 dontAddPrefix = true;
1616
17− installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
17+ installPhase = ''
18+ runHook preInstall
19+ ${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
20+ runHook postInstall
21+ '';
1822
1923 meta = {
20− homepage = "https://github.com/ocaml/dune";
24+ homepage = https://github.com/ocaml/dune;
2125 description = "A composable build system";
2226 maintainers = [ stdenv.lib.maintainers.vbgl ];
2327 license = stdenv.lib.licenses.mit;