Merge pull request #241197 from donovanglover/grimblast

grimblast: init at unstable-2023-09-06
This commit is contained in:
Artturi 2023-09-27 20:21:57 +03:00 committed by GitHub
commit 364d7f4ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,61 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, makeWrapper
, scdoc
, coreutils
, grim
, hyprland
, hyprpicker
, jq
, libnotify
, slurp
, wl-clipboard
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "grimblast";
version = "unstable-2023-09-06";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "contrib";
rev = "5b67181fced4fb06d26afcf9614b35765c576168";
hash = "sha256-W23nMGmDnyBgxO8O/9jcZtiSpa0taMNcRAD1das/ttw=";
};
strictDeps = true;
nativeBuildInputs = [
makeWrapper
scdoc
];
makeFlags = [
"PREFIX=$(out)"
];
sourceRoot = "${finalAttrs.src.name}/grimblast";
postInstall = ''
wrapProgram $out/bin/grimblast --prefix PATH ':' \
"${lib.makeBinPath [
coreutils
grim
hyprland
hyprpicker
jq
libnotify
slurp
wl-clipboard
]}"
'';
meta = with lib; {
description = "A helper for screenshots within Hyprland, based on grimshot";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ donovanglover ];
mainProgram = "grimblast";
};
})