gui-for-clash: fix basepath patching

This commit is contained in:
Wolfgang Walther
2025-01-25 16:03:09 +01:00
parent ce1ba13c71
commit e6c76c051f
+7 -5
View File
@@ -68,11 +68,13 @@ in
buildGoModule {
inherit pname version src;
patches = [
(replaceVars ./bridge.patch {
basepath = placeholder "out";
})
];
patches = [ ./bridge.patch ];
postPatch = ''
# As we need the $out reference, we can't use `replaceVars` here.
substituteInPlace bridge/bridge.go \
--replace-fail '@basepath@' "$out"
'';
vendorHash = "sha256-OrysyJF+lUMf+0vWmOZHjxUdE6fQCKArmpV4alXxtYs=";