{ 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 = "72ca3ffc84fed71d5199c8d235afb047649a9de1"; sha256 = "sha256:0s1jrwmpz5r2qdbbg2m6wjwpxjngx54x2xq2gwyjsf3kpi4d5dl2"; }; 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; }; }