Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
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-2025-10-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hyprwm";
|
|
repo = "contrib";
|
|
rev = "32e1a75b65553daefb419f0906ce19e04815aa3a";
|
|
hash = "sha256-PzgQJydp+RlKvwDi807pXPlURdIAVqLppZDga3DwPqg=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
description = "Helper for screenshots within Hyprland, based on grimshot";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
teams = [ lib.teams.hyprland ];
|
|
mainProgram = "grimblast";
|
|
};
|
|
})
|