From e11229d070d47203f056ffac4f3a5bf740007104 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 5 Apr 2021 12:40:55 +0100 Subject: [PATCH] nix/pkgs: init my flameshot fork --- nix/pkgs/default.nix | 1 + nix/pkgs/flameshot/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 nix/pkgs/flameshot/default.nix diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index ad5ab28ad5..713ac5207d 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -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) diff --git a/nix/pkgs/flameshot/default.nix b/nix/pkgs/flameshot/default.nix new file mode 100644 index 0000000000..2cae8c5253 --- /dev/null +++ b/nix/pkgs/flameshot/default.nix @@ -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; + }; +}