From 4c36462befc32d48d92a691c9ebcf9d5f9e17659 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 25 Nov 2022 15:39:29 +0800 Subject: [PATCH] rosenthal: Add grimblast. * rosenthal/packages/wm.scm (grimblast): New variable. --- rosenthal/packages/wm.scm | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/rosenthal/packages/wm.scm b/rosenthal/packages/wm.scm index aae7342..112f6af 100644 --- a/rosenthal/packages/wm.scm +++ b/rosenthal/packages/wm.scm @@ -128,3 +128,44 @@ layouts, fancy effects, has a very flexible IPC model allowing for a lot of customization, and more.") (license license:bsd-3))) + +;; No releases yet. +(define-public grimblast + (let ((revision "0") + (commit "5b21c74a3200ffdd48ed7764c7041d43c3cd5588")) + (package + (name "grimblast") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hyprwm/contrib") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wbpmf1dsf1syh7jbirglqkscsrn7l496j7afwxpbdjragagbhc0")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests + #:make-flags + #~(list (string-append "PREFIX=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'chdir + (lambda _ + (chdir "grimblast"))) + (add-after 'chdir 'patch-script-dependencies + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "grimblast" + (("\\b(date|grim|jq|notify-send|slurp|hyprctl|wl-copy)\\b" + _ binary) + (search-input-file + inputs (string-append "bin/" binary))))))))) + (native-inputs (list scdoc)) + (inputs (list grim jq libnotify slurp hyprland wl-clipboard)) + (home-page "https://github.com/hyprwm/contrib") + (synopsis "Hyprland version of Grimshot") + (description "A Hyprland version of Grimshot.") + (license license:expat))))