cockpit-zfs: use postPatch phase instead of patchPhase
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user