cockpit-zfs: use postPatch phase instead of patchPhase

This commit is contained in:
System administrator
2026-04-20 10:05:10 +02:00
parent be3273088c
commit cb39a7f717
+1 -5
View File
@@ -89,7 +89,7 @@ stdenv.mkDerivation (finalAttrs: {
ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
};
patchPhase =
postPatch =
let
# houston-common-lib has @types/electron which pulls in electron.
# Electron's postinstall downloads binaries, which fails in sandbox.
@@ -98,8 +98,6 @@ stdenv.mkDerivation (finalAttrs: {
houstonUiDir = "houston-common/houston-common-ui";
in
''
runHook prePatch
# Remove electron type dependency
substituteInPlace ${houstonLibDir}/package.json \
--replace-fail '"@types/electron": "^1.6.12",' ""
@@ -123,8 +121,6 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail "VueDevTools()," "" \
--replace-fail "import dts from 'vite-plugin-dts'" ""
sed -i '/dts({/,/})/d' ${houstonUiDir}/vite.config.ts
runHook postPatch
'';
buildPhase = ''