flameshot: fix desktop Exec path and autostart directory location

authored by

oxalica and committed by
Robert Helgesson
910e1eab a37334b1

+20 -1
+20 -1
pkgs/tools/misc/flameshot/default.nix
··· 1 { mkDerivation 2 , lib 3 , fetchFromGitHub 4 , qtbase 5 , cmake 6 , qttools ··· 19 sha256 = "1ncknjayl6am740f49g0lc28z1zsifbicxz1j1kwps3ksj15nl7a"; 20 }; 21 22 passthru = { 23 updateScript = nix-update-script { 24 attrPath = pname; ··· 28 nativeBuildInputs = [ cmake qttools qtsvg ]; 29 buildInputs = [ qtbase ]; 30 31 meta = with lib; { 32 description = "Powerful yet simple to use screenshot software"; 33 homepage = "https://github.com/flameshot-org/flameshot"; 34 - maintainers = with maintainers; [ scode ]; 35 license = licenses.gpl3Plus; 36 platforms = platforms.linux; 37 };
··· 1 { mkDerivation 2 , lib 3 , fetchFromGitHub 4 + , fetchpatch 5 , qtbase 6 , cmake 7 , qttools ··· 20 sha256 = "1ncknjayl6am740f49g0lc28z1zsifbicxz1j1kwps3ksj15nl7a"; 21 }; 22 23 + patches = [ 24 + # Support for USE_LAUNCHER_ABSOLUTE_PATH. 25 + # Should be removed when the next release comes out. 26 + (fetchpatch { 27 + url = "https://github.com/flameshot-org/flameshot/commit/1031980ed1e62d24d7f719998b7951d48801e3fa.patch"; 28 + sha256 = "sha256-o8Zz/bBvitXMDFt5rAfubiUPOx+EQ+ITgrfnFM3dFjE="; 29 + }) 30 + # Fix autostart write path. 31 + # Should be removed when the next release comes out. 32 + (fetchpatch { 33 + url = "https://github.com/flameshot-org/flameshot/commit/7977cbb52c2d785abd0d85d9df5991e8f7cae441.patch"; 34 + sha256 = "sha256-wWa9Y+4flBiggOMuX7KQyL+q3f2cALGeQBGusX2x6sk="; 35 + }) 36 + ]; 37 + 38 passthru = { 39 updateScript = nix-update-script { 40 attrPath = pname; ··· 44 nativeBuildInputs = [ cmake qttools qtsvg ]; 45 buildInputs = [ qtbase ]; 46 47 + # Use relative path for the .desktop file. 48 + cmakeFlags = [ "-DUSE_LAUNCHER_ABSOLUTE_PATH=OFF" ]; 49 + 50 meta = with lib; { 51 description = "Powerful yet simple to use screenshot software"; 52 homepage = "https://github.com/flameshot-org/flameshot"; 53 + maintainers = with maintainers; [ scode oxalica ]; 54 license = licenses.gpl3Plus; 55 platforms = platforms.linux; 56 };