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 1 { mkDerivation 2 2 , lib 3 3 , fetchFromGitHub 4 + , fetchpatch 4 5 , qtbase 5 6 , cmake 6 7 , qttools ··· 19 20 sha256 = "1ncknjayl6am740f49g0lc28z1zsifbicxz1j1kwps3ksj15nl7a"; 20 21 }; 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 + 22 38 passthru = { 23 39 updateScript = nix-update-script { 24 40 attrPath = pname; ··· 28 44 nativeBuildInputs = [ cmake qttools qtsvg ]; 29 45 buildInputs = [ qtbase ]; 30 46 47 + # Use relative path for the .desktop file. 48 + cmakeFlags = [ "-DUSE_LAUNCHER_ABSOLUTE_PATH=OFF" ]; 49 + 31 50 meta = with lib; { 32 51 description = "Powerful yet simple to use screenshot software"; 33 52 homepage = "https://github.com/flameshot-org/flameshot"; 34 - maintainers = with maintainers; [ scode ]; 53 + maintainers = with maintainers; [ scode oxalica ]; 35 54 license = licenses.gpl3Plus; 36 55 platforms = platforms.linux; 37 56 };