a211d94291
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
36 lines
778 B
Nix
36 lines
778 B
Nix
{ mkDerivation
|
|
, lib
|
|
, fetchFromGitHub
|
|
, qtbase
|
|
, cmake
|
|
, qttools
|
|
, qtsvg
|
|
, nix-update-script
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "flameshot";
|
|
version = "12.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "flameshot-org";
|
|
repo = "flameshot";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-omyMN8d+g1uYsEw41KmpJCwOmVWLokEfbW19vIvG79w=";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake qttools qtsvg ];
|
|
buildInputs = [ qtbase ];
|
|
|
|
meta = with lib; {
|
|
description = "Powerful yet simple to use screenshot software";
|
|
homepage = "https://github.com/flameshot-org/flameshot";
|
|
maintainers = with maintainers; [ scode oxalica ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|