1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{
lib,
stdenvNoCC,
fetchFromGitHub,
makeWrapper,
scdoc,
coreutils,
grim,
hyprland,
hyprpicker,
jq,
libnotify,
slurp,
wl-clipboard,
unixtools,
bash,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "grimblast";
version = "0.1-unstable-2026-01-14";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "contrib";
rev = "541628cebe42792ddf5063c4abd6402c2f1bd68f";
hash = "sha256-CopNx3j//gZ2mE0ggEK9dZ474UcbDhpTw+KMor8mSxI=";
};
strictDeps = true;
nativeBuildInputs = [
makeWrapper
scdoc
];
buildInputs = [ bash ];
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
unixtools.getopt
]
}"
'';
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Helper for screenshots within Hyprland, based on grimshot";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
teams = [ lib.teams.hyprland ];
mainProgram = "grimblast";
};
})
|