{ 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"; }; })