nixpkgs/pkgs/tools/misc/flameshot/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

{ mkDerivation
, lib
, fetchFromGitHub
, qtbase
, cmake
, qttools
, qtsvg
, nix-update-script
, fetchpatch
}:
2018-01-21 06:47:57 +00:00
mkDerivation rec {
pname = "flameshot";
2022-07-04 02:36:54 +00:00
version = "12.1.0";
2018-01-21 06:47:57 +00:00
src = fetchFromGitHub {
2020-10-14 18:59:19 +00:00
owner = "flameshot-org";
2018-01-21 06:47:57 +00:00
repo = "flameshot";
rev = "v${version}";
2022-07-04 02:36:54 +00:00
sha256 = "sha256-omyMN8d+g1uYsEw41KmpJCwOmVWLokEfbW19vIvG79w=";
2018-01-21 06:47:57 +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=";
})
];
passthru = {
updateScript = nix-update-script { };
};
2020-10-14 18:59:19 +00:00
nativeBuildInputs = [ cmake qttools qtsvg ];
buildInputs = [ qtbase ];
meta = with lib; {
2018-01-21 06:47:57 +00:00
description = "Powerful yet simple to use screenshot software";
homepage = "https://github.com/flameshot-org/flameshot";
2023-08-10 07:02:51 +00:00
mainProgram = "flameshot";
maintainers = with maintainers; [ scode oxalica ];
2021-07-19 11:08:08 +00:00
license = licenses.gpl3Plus;
2022-11-21 18:30:30 +00:00
platforms = platforms.linux ++ platforms.darwin;
2018-01-21 06:47:57 +00:00
};
}