From c10bdd233c4bc96b5232fabb8a79540563969d44 Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Wed, 8 Mar 2023 14:54:08 +0100 Subject: [PATCH] notable: add seccomp-fix for AppImage --- pkgs/applications/misc/notable/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/notable/default.nix b/pkgs/applications/misc/notable/default.nix index 9e701cdb33f..e51e49fd893 100644 --- a/pkgs/applications/misc/notable/default.nix +++ b/pkgs/applications/misc/notable/default.nix @@ -1,4 +1,4 @@ -{ appimageTools, fetchurl, lib }: +{ appimageTools, makeWrapper, fetchurl, lib }: let pname = "notable"; @@ -16,10 +16,11 @@ let inherit name src; }; + nativeBuildInputs = [ makeWrapper ]; in appimageTools.wrapType2 rec { - inherit name src; + inherit pname version src; profile = '' export LC_ALL=C.UTF-8 @@ -34,6 +35,9 @@ appimageTools.wrapType2 rec { $out/share/icons/hicolor/1024x1024/apps/notable.png substituteInPlace $out/share/applications/notable.desktop \ --replace 'Exec=AppRun' 'Exec=${pname}' + source "${makeWrapper}/nix-support/setup-hook" + wrapProgram "$out/bin/${pname}" \ + --add-flags "--disable-seccomp-filter-sandbox" ''; meta = with lib; {