1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00

Merge pull request #147731 from m-bdf/patch-1

tree: Fix phases consistency
This commit is contained in:
Silvan Mosberger 2021-11-29 17:22:58 +01:00 committed by GitHub
commit 7a01a0efeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
preInstall = ''
installPhase = ''
runHook preInstall
install -d ${placeholder "out"}/bin
runHook postInstall

View file

@ -36,9 +36,10 @@ stdenv.mkDerivation ({
# Some packages use the style
# opts = -i ../../path/to/package
# rather than the declarative pkgs attribute so we have to rewrite the path.
postPatch = ''
patchPhase = ''
runHook prePatch
sed -i ${ipkgName}.ipkg -e "/^opts/ s|-i \\.\\./|-i ${idris-with-packages}/libs/|g"
runHook postPatch
'';
buildPhase = ''