2021-07-22 02:01:50 +01:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2021-10-23 15:49:42 +01:00
|
|
|
, fetchpatch
|
2021-07-22 02:01:50 +01:00
|
|
|
, qtbase
|
|
|
|
, cmake
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
2018-01-21 06:47:57 +00:00
|
|
|
|
2019-08-01 07:36:51 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "flameshot";
|
2021-11-14 01:20:56 +00:00
|
|
|
version = "0.10.2";
|
2018-01-21 06:47:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-14 19:59:19 +01:00
|
|
|
owner = "flameshot-org";
|
2018-01-21 06:47:57 +00:00
|
|
|
repo = "flameshot";
|
|
|
|
rev = "v${version}";
|
2021-11-14 01:20:56 +00:00
|
|
|
sha256 = "sha256-rZUiaS32C77tFJmEkw/9MGbVTVscb6LOCyWaWO5FyR4=";
|
2018-01-21 06:47:57 +00:00
|
|
|
};
|
|
|
|
|
2021-10-23 15:49:42 +01:00
|
|
|
patches = [
|
|
|
|
# Support for USE_LAUNCHER_ABSOLUTE_PATH.
|
|
|
|
# Should be removed when the next release comes out.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/flameshot-org/flameshot/commit/1031980ed1e62d24d7f719998b7951d48801e3fa.patch";
|
|
|
|
sha256 = "sha256-o8Zz/bBvitXMDFt5rAfubiUPOx+EQ+ITgrfnFM3dFjE=";
|
|
|
|
})
|
|
|
|
# Fix autostart write path.
|
|
|
|
# Should be removed when the next release comes out.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/flameshot-org/flameshot/commit/7977cbb52c2d785abd0d85d9df5991e8f7cae441.patch";
|
|
|
|
sha256 = "sha256-wWa9Y+4flBiggOMuX7KQyL+q3f2cALGeQBGusX2x6sk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-07-22 02:01:50 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-10-14 19:59:19 +01:00
|
|
|
nativeBuildInputs = [ cmake qttools qtsvg ];
|
2019-02-06 08:27:05 +00:00
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
2021-10-23 15:49:42 +01:00
|
|
|
# Use relative path for the .desktop file.
|
|
|
|
cmakeFlags = [ "-DUSE_LAUNCHER_ABSOLUTE_PATH=OFF" ];
|
|
|
|
|
2019-08-01 07:36:51 +01:00
|
|
|
meta = with lib; {
|
2018-01-21 06:47:57 +00:00
|
|
|
description = "Powerful yet simple to use screenshot software";
|
2020-11-06 08:32:57 +00:00
|
|
|
homepage = "https://github.com/flameshot-org/flameshot";
|
2021-10-23 15:49:42 +01:00
|
|
|
maintainers = with maintainers; [ scode oxalica ];
|
2021-07-19 12:08:08 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2018-01-21 06:47:57 +00:00
|
|
|
};
|
|
|
|
}
|