[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add neofetch to games.scm address@hidden
From: |
Alex Kost |
Subject: |
Re: [PATCH] Add neofetch to games.scm address@hidden |
Date: |
Mon, 08 May 2017 20:27:07 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
address@hidden (2017-05-05 22:13 -0400) wrote:
> Pretty small patch for my first time commiting.
Hello and welcome! I also have a couple of notes additionally to what
Arun wrote.
> From ff50a931905376440f245c37df620d724a78dde9 Mon Sep 17 00:00:00 2001
> From: "Ethan R. Jones" <address@hidden>
> Date: Fri, 5 May 2017 22:02:48 -0400
> Subject: [PATCH] Adding neofetch to the games package expression.
>
> ---
> gnu/packages/games.scm | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index b31bb93db..b0831b4a0 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -28,6 +28,7 @@
> ;;; Copyright © 2017 Arun Isaac <address@hidden>
> ;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
> ;;; Copyright © 2017 nee <address@hidden>
> +;;; Copyright © 2017 Ethan "dpg" Jones <address@hidden>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -3941,3 +3942,37 @@ fabulous Orb of Zot.")
> license:expat
> license:zlib
> license:asl2.0))))
> +
> +(define-public neofetch
> + (package
> + (name "neofetch")
> + (version "3.1.0")
> + (source (origin
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://github.com/dylanaraps/neofetch.git")
> + (commit version)))
We usually use 'url-fetch' with a tarball snapshot (not sure if there is a
preference though):
https://github.com/dylanaraps/neofetch/archive/3.1.0.tar.gz
> + (file-name (string-append name "-" version))
> + (sha256
> + (base32
> + "0z2ch1j9m5xsdaqn89dd7xlick67jfqpa90mb4djyycgak9751ca"))))
> + (build-system gnu-build-system)
> + (arguments
> + '(#:tests? #f ;; Because neofetch is a bash script it only needs make
> install.
> + #:strip-binaries? #f
> + #:phases
> + (modify-phases %standard-phases
> + (delete 'configure)
> + (delete 'build))
> + #:make-flags ;; We need to the Makefile to output to our proper
> store.
> + (list (string-append "DESTDIR=" %output))))
> + (inputs `(("bash" ,bash))) ;; Only requires bash!
> + (synopsis "System info script")
> + (description "Neofetch is a CLI system information tool written in
> +BASH. Neofetch displays information about your system next to an image,
> your OS
> +logo, or any ASCII file of your choice. The main purpose of Neofetch is
> +to be used in screenshots to show other users what OS/Distro you're
> +running, what Theme/Icons you're using etc. ")
^^
Please remove those spaces.
> + (home-page "https://github.com/dylanaraps/neofetch")
> + (license license:expat)))
--
Alex