nix-script: remove phases (#130742)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
2e09265a54
commit
6cafd781ca
|
@ -15,13 +15,20 @@ stdenv.mkDerivation {
|
|||
(haskellPackages.ghcWithPackages (hs: with hs; [ posix-escape ]))
|
||||
];
|
||||
|
||||
phases = [ "buildPhase" "installPhase" "fixupPhase" ];
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
mkdir -p $out/bin
|
||||
ghc -O2 $src/nix-script.hs -o $out/bin/nix-script -odir . -hidir .
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
ln -s $out/bin/nix-script $out/bin/nix-scripti
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue