build-idris-package: Use patchPhase for consistency

This commit is contained in:
Maëlys Bras de fer 2021-11-28 13:20:38 +01:00 committed by GitHub
parent 55d436b1e7
commit 69f1acd3ec

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 = ''