nix/pkgs: init my flameshot fork

This commit is contained in:
Luke Granger-Brown 2021-04-05 12:40:55 +01:00
parent 549b4f1ccc
commit e11229d070
2 changed files with 31 additions and 0 deletions

View file

@ -26,5 +26,6 @@
enigma = import ./enigma.nix args;
alertmanager-discord = pkgs.callPackage ./alertmanager-discord.nix {};
prometheus-snmp-config = import ./prometheus-snmp-config args;
flameshot = pkgs.libsForQt5.callPackage ./flameshot {};
} // (import ./heptapod-runner.nix args)
// (import ./lightspeed args)

View file

@ -0,0 +1,30 @@
{ mkDerivation, lib, fetchFromGitHub, qtbase, cmake, qttools, qtsvg }:
mkDerivation rec {
pname = "flameshot";
version = "0.9.0";
#src = lib.cleanSourceWith {
# filter = path: type: type != "directory" || (
# baseNameOf path != "build" && baseNameOf path != ".git"
# );
# src = /home/lukegb/Projects/flameshot;
#};
src = fetchFromGitHub {
owner = "lukegb";
repo = "flameshot";
rev = "6f4feb5277f868943cc4ae82bcb0c0f12523e93f";
sha256 = "sha256:066jl5mm9jbhzh5ly0hljlrpxadilwylpyhnakynmvfkj2567dq1";
};
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 = [ maintainers.scode ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
};
}