nix-script: remove phases (#130742)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
commit6cafd781ca99b37302bf6422cf760e9d8b036e80
authorFelix Bühler <Stunkymonkey@users.noreply.github.com>
dateTue 20 Jul 2021, 13:27 (5 years ago)
parent2e09265
pkgs/tools/nix/nix-script/default.nix+8−1
@@ -15,13 +15,20 @@ stdenv.mkDerivation {
1515 (haskellPackages.ghcWithPackages (hs: with hs; [ posix-escape ]))
1616 ];
1717
18− phases = [ "buildPhase" "installPhase" "fixupPhase" ];
1918 buildPhase = ''
19+ runHook preBuild
20+
2021 mkdir -p $out/bin
2122 ghc -O2 $src/nix-script.hs -o $out/bin/nix-script -odir . -hidir .
23+
24+ runHook postBuild
2225 '';
2326 installPhase = ''
27+ runHook preInstall
28+
2429 ln -s $out/bin/nix-script $out/bin/nix-scripti
30+
31+ runHook postInstall
2532 '';
2633
2734 meta = with lib; {