@@ -1,6 +1,7 @@
11{ mkDerivation
22, lib
33, fetchFromGitHub
4+, fetchpatch
45, qtbase
56, cmake
67, qttools
@@ -19,6 +20,21 @@ mkDerivation rec {
1920 sha256 = "1ncknjayl6am740f49g0lc28z1zsifbicxz1j1kwps3ksj15nl7a";
2021 };
2122
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+
2238 passthru = {
2339 updateScript = nix-update-script {
2440 attrPath = pname;
@@ -28,10 +44,13 @@ mkDerivation rec {
2844 nativeBuildInputs = [ cmake qttools qtsvg ];
2945 buildInputs = [ qtbase ];
3046
47+ # Use relative path for the .desktop file.
48+ cmakeFlags = [ "-DUSE_LAUNCHER_ABSOLUTE_PATH=OFF" ];
49+
3150 meta = with lib; {
3251 description = "Powerful yet simple to use screenshot software";
3352 homepage = "https://github.com/flameshot-org/flameshot";
34− maintainers = with maintainers; [ scode ];
53+ maintainers = with maintainers; [ scode oxalica ];
3554 license = licenses.gpl3Plus;
3655 platforms = platforms.linux;
3756 };