nix-script: remove phases (#130742)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Felix Bühler 2021-07-20 13:27:46 +02:00 committed by GitHub
parent 2e09265a54
commit 6cafd781ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; {