@@ -3524,33 +3524,36 @@ (define-public avizo
(define-public grimshot
(package
- (inherit sway)
(name "grimshot")
- (source (origin
- (inherit (package-source sway))
- (snippet #~(delete-file "contrib/grimshot.1"))))
+ (version "1.9-contrib.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/OctopusET/sway-contrib")
+ (commit version)))
+ (sha256
+ (base32 "16fa8l81zjy25nsky1i525hb7zjprqz74mbirm9b76pvksschdv5"))))
(build-system copy-build-system)
(arguments
- (list #:install-plan #~`(("grimshot" "bin/")
- ("grimshot.1" "share/man/man1/"))
- #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'chdir
- (lambda _
- (chdir "contrib")))
- (add-after 'chdir 'patch-script-dependencies
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "grimshot"
- (("\\b(date|grim|jq|notify-send|slurp|swaymsg|wl-copy)\\b"
- _ binary)
- (search-input-file
- inputs (string-append "bin/" binary))))))
- (add-after 'patch-script-dependencies 'build-man-page
- (lambda _
- (with-input-from-file "grimshot.1.scd"
- (lambda _
- (with-output-to-file "grimshot.1"
- (lambda _
- (invoke "scdoc"))))))))))
+ (list
+ #:install-plan #~`(("grimshot" "bin/")
+ ("grimshot.1" "share/man/man1/"))
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-script-dependencies
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "grimshot"
+ (("\\b(date|grim|jq|notify-send|slurp|swaymsg|wl-copy)\\b"
+ _ binary)
+ (search-input-file inputs
+ (string-append "bin/" binary))))))
+ (add-after 'patch-script-dependencies 'build-man-page
+ (lambda _
+ (with-input-from-file "grimshot.1.scd"
+ (lambda _
+ (with-output-to-file "grimshot.1"
+ (lambda _
+ (invoke "scdoc"))))))))))
(native-inputs (list scdoc))
(inputs (list coreutils
grim
@@ -3559,11 +3562,14 @@ (define-public grimshot
slurp
sway
wl-clipboard))
+ (home-page "https://github.com/OctopusET/sway-contrib")
(synopsis "Screenshot utility for the Sway window manager")
- (description "Grimshot is a screenshot utility for @code{sway}. It provides
+ (description
+ "Grimshot is a screenshot utility for @code{sway}. It provides
an interface over @code{grim}, @code{slurp} and @code{jq}, and supports storing
the screenshot either directly to the clipboard using @code{wl-copy} or to a
-file.")))
+file.")
+ (license license:expat)))
(define-public wld
(let ((commit "6586736176ef50a88025abae835e29a7ca980126")