mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ mkDerivation
|
|
, lib
|
|
, fetchFromGitHub
|
|
, qtbase
|
|
, cmake
|
|
, qttools
|
|
, qtsvg
|
|
, nix-update-script
|
|
, fetchpatch
|
|
, kguiaddons
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "flameshot";
|
|
version = "12.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flameshot-org";
|
|
repo = "flameshot";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-omyMN8d+g1uYsEw41KmpJCwOmVWLokEfbW19vIvG79w=";
|
|
};
|
|
|
|
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 { };
|
|
};
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "USE_WAYLAND_CLIPBOARD" true)
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake qttools qtsvg ];
|
|
buildInputs = [ qtbase kguiaddons ];
|
|
|
|
meta = with lib; {
|
|
description = "Powerful yet simple to use screenshot software";
|
|
homepage = "https://github.com/flameshot-org/flameshot";
|
|
mainProgram = "flameshot";
|
|
maintainers = with maintainers; [ scode oxalica ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|