build-idris-package: Use patchPhase for consistency
This commit is contained in:
parent
55d436b1e7
commit
69f1acd3ec
1 changed files with 2 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue