Jost Alemann
2026-02-09 22:44:26 +01:00
parent c0a0fb0604
commit ebc5c1b127
+13
View File
@@ -10,6 +10,7 @@
libayatana-appindicator,
undmg,
makeBinaryWrapper,
fetchpatch,
}:
let
@@ -35,6 +36,18 @@ let
pasteboard = "sha256-lJA5OWoAHfxORqWMglKzhsL1IFr9YcdAQP/NVOLYB4o=";
};
patches = [
# Fix for https://github.com/localsend/localsend/security/advisories/GHSA-34v6-52hh-x4r4
# See: https://github.com/NixOS/nixpkgs/issues/488755
# Can be removed with new release > 1.17.0
(fetchpatch {
url = "https://github.com/localsend/localsend/commit/8f3cec85aa29b2b13fed9b2f8e499e1ac9b0504c.patch";
hash = "sha256-Fswir+TebCDPxHVBg8YM3ROx2uoLG92E3E15wnzHz+U=";
})
];
patchFlags = [ "-p2" ];
postPatch = ''
substituteInPlace lib/util/native/autostart_helper.dart \
--replace-fail 'Exec=''${Platform.resolvedExecutable}' "Exec=localsend_app"