nix-script: remove phases (#130742)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
wip/nixpkgs-raku
Felix Bühler 3 years ago committed by GitHub
parent 2e09265a54
commit 6cafd781ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pkgs/tools/nix/nix-script/default.nix

@ -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…
Cancel
Save