{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, scdoc, coreutils, grim, hyprland, hyprpicker, jq, libnotify, slurp, wl-clipboard, bash, nix-update-script, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "grimblast"; version = "0.1-unstable-2025-07-18"; src = fetchFromGitHub { owner = "hyprwm"; repo = "contrib"; rev = "481175e17e155f19a3b31416530b6edf725e7034"; hash = "sha256-usBNOT/uzFdsKDe5Ik+C36zqL+BfT7Lp2rqKWrpQuqk="; }; 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 ] }" ''; 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"; }; })