15 stdenvNoCC.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
22 rev = finalAttrs.version;
23 hash = "sha256-9taTmV357cWglMGuN3NLq3bfNneFthwV6y+Ml4qEeHA=";
26 nativeBuildInputs = [ makeWrapper ];
31 install -Dm755 hyprshot -t "$out/bin"
32 wrapProgram "$out/bin/hyprshot" \
33 --prefix PATH ":" ${lib.makeBinPath ([
34 hyprland jq grim slurp wl-clipboard libnotify
35 ] ++ lib.optionals withFreeze [ hyprpicker ])}
41 homepage = "https://github.com/Gustash/hyprshot";
42 description = "Hyprshot is an utility to easily take screenshots in Hyprland using your mouse";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ Cryolitia ];
45 mainProgram = "hyprshot";
46 platforms = hyprland.meta.platforms;