2024-01-02 11:29:13 +00:00
|
|
|
{ stdenvNoCC
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hyprland
|
|
|
|
, jq
|
|
|
|
, grim
|
|
|
|
, slurp
|
|
|
|
, wl-clipboard
|
|
|
|
, libnotify
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "hyprshot";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.3.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Gustash";
|
|
|
|
repo = "hyprshot";
|
|
|
|
rev = finalAttrs.version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-9taTmV357cWglMGuN3NLq3bfNneFthwV6y+Ml4qEeHA=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 hyprshot -t "$out/bin"
|
|
|
|
wrapProgram "$out/bin/hyprshot" \
|
|
|
|
--prefix PATH ":" ${lib.makeBinPath [
|
|
|
|
hyprland jq grim slurp wl-clipboard libnotify
|
|
|
|
]}
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Gustash/hyprshot";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Hyprshot is an utility to easily take screenshots in Hyprland using your mouse";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ Cryolitia ];
|
|
|
|
mainProgram = "hyprshot";
|
|
|
|
platforms = hyprland.meta.platforms;
|
|
|
|
};
|
|
|
|
})
|