krohnkite: use substituteInPlace instead of sed

This commit is contained in:
ben9986 2024-09-11 10:10:56 +01:00
parent e522e8e971
commit 5757e52738
No known key found for this signature in database
GPG Key ID: ABBCDD7769BCD3B0

View File

@ -32,7 +32,6 @@ buildNpmPackage rec {
postPatch = '' postPatch = ''
cp ${./package-lock.json} package-lock.json cp ${./package-lock.json} package-lock.json
sed -i 's/7z a -tzip/zip -r/g' Makefile
''; '';
npmBuildScript = "tsc"; npmBuildScript = "tsc";
@ -40,6 +39,7 @@ buildNpmPackage rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
substituteInPlace Makefile --replace-fail '7z a -tzip' 'zip -r'
make krohnkite-${version}.kwinscript make krohnkite-${version}.kwinscript
kpackagetool6 --type=KWin/Script --install=krohnkite-${version}.kwinscript --packageroot=$out/share/kwin/scripts kpackagetool6 --type=KWin/Script --install=krohnkite-${version}.kwinscript --packageroot=$out/share/kwin/scripts