2021-08-05 21:33:18 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qtbase
|
|
|
|
, cmake
|
|
|
|
, qttools
|
|
|
|
, qtsvg
|
|
|
|
, nix-update-script
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchpatch
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "flameshot";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "12.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-11-03 02:18:15 +00:00
|
|
|
owner = "flameshot-org";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "flameshot";
|
|
|
|
rev = "v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-omyMN8d+g1uYsEw41KmpJCwOmVWLokEfbW19vIvG79w=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/flameshot-org/flameshot/pull/3166
|
|
|
|
(fetchpatch {
|
|
|
|
name = "10-fix-wayland.patch";
|
|
|
|
url = "https://github.com/flameshot-org/flameshot/commit/5fea9144501f7024344d6f29c480b000b2dcd5a6.patch";
|
|
|
|
sha256 = "sha256-SnjVbFMDKD070vR4vGYrwLw6scZAFaQA4b+MbI+0W9E=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
nativeBuildInputs = [ cmake qttools qtsvg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful yet simple to use screenshot software";
|
2020-11-21 19:51:51 +00:00
|
|
|
homepage = "https://github.com/flameshot-org/flameshot";
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "flameshot";
|
2021-10-28 06:52:43 +00:00
|
|
|
maintainers = with maintainers; [ scode oxalica ];
|
2021-07-21 07:28:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-12-02 08:20:57 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|