(address . guix-patches@gnu.org)
* gnu/packages/admin.scm (screenfetch): New variable.
---
gnu/packages/admin.scm | 47 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Toggle diff (74 lines)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 3d8c247f57..b920d564e5 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -25,6 +25,7 @@
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019 Brett Gilio <brettg@posteo.net>
;;; Copyright © 2019 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
+;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -55,6 +56,7 @@
#:use-module (guix build-system python)
#:use-module (guix build-system trivial)
#:use-module (gnu packages)
+ #:use-module (gnu packages algebra)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages check)
@@ -2651,6 +2653,51 @@ used in screenshots to show other users what operating system or distribution
you are running, what theme or icon set you are using, etc.")
(license license:expat)))
+(define-public screenfetch
+ ;; first commit supporting current GuixSD
+ (let ((commit "e3ec82dd464e81e4d10bef218b3016e3044c766c"))
+ (package
+ (name "screenfetch")
+ (version (string-append "3.8.0" "-" (string-take commit 7)))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/KittyKatt/screenFetch")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1lzs1l5xgj9mn4b59lhkfgqnyiivf8svd1iwjabzrax90rdmxfwj"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source")))
+ (mkdir-p (string-append %output "/bin/"))
+ (mkdir-p (string-append %output "/man/man1/"))
+ (copy-file (string-append source "/screenfetch-dev")
+ (string-append %output "/bin/screenfetch"))
+ (copy-file (string-append source "/screenfetch.1")
+ (string-append %output "/man/man1/screenfetch.1"))
+ (substitute* (string-append %output "/bin/screenfetch")
+ (("/usr/bin/env bash")
+ (string-append (assoc-ref %build-inputs "bash")
+ "/bin/bash")))))))
+ (propagated-inputs
+ `(("bash" ,bash)
+ ("bc" ,bc)
+ ("scrot" ,scrot)
+ ("xdpyinfo" ,xdpyinfo)
+ ("xprop" ,xprop)))
+ (home-page "https://github.com/KittyKatt/screenFetch")
+ (synopsis "System information script")
+ (description "Bash screenshot information tool which can be used to
+generate those nifty terminal theme information and ASCII distribution logos in
+everyone's screenshots nowadays.")
+ (license license:gpl3))))
+
(define-public nnn
(package
(name "nnn")
--
2.22.0
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl0VYmYACgkQ9Qb9Fp2P
2Vp60xAAr3f3CF0042Wr3uTGbiNa/YG3XAK5KqBSiXggSw2umawIZXLHSVTbFdOB
0ajgRfEKFSITUoCUtYacDFbb/4mF8/G4sH7lGssXVwqxMkzDCWEsipDi/icoA+sX
Ys4cMfho96aTHIkm7w1lAzZ354DWVT6ciDVeaopV+1Tq4TXbaoEu+3NXX0ac+w30
bk1cq/G7vM2Oj1tlsjmW7N43r4/PB6mVU0sQi2uwcjQHP9xj+AxPDu1W5wdq/bU3
T5jW0bIyQdZSkqbb9fh6KUSm3aQs4R9AzIBwSopmq2P+JSgNWf82iyhi4j1TpFM0
JjIsDlEpKNhVZ5QeHn3C6CD3SpoA3ygsy3TOkc8x1+VxXMYEtQCieGS5+Lql5nTC
VSExcY3sSBGe/Ib3h6hoVWha6I4E1npdtTZFVFwoybWXECnoE73kc4ln3F9a9aEV
gZ37EObHr2uF1XAuZcZAEoTXwLuYYYkvzvVztd4uGk5WHLQeet1RcKItQnhmePFL
r9DxBULGFoA+5TJ6IDLDr1VtvcyzqX37/HEliQAjDDuziyyg+1NDlF253jXUdzQ6
jyOyPOyrgLCNxg0w4Y+XmClU/bYLPuihDrOFqvIz6cUXeZpk/bMPht9s6Ab2xVic
Pxx+klqIBdN5Ufi2e4uK437C6VRunN6r/DqDJfVQ5XxOOx9dg8s=
=es1+
-----END PGP SIGNATURE-----