diff --git a/snamellit/packages/gh-bin.scm b/snamellit/packages/gh-bin.scm new file mode 100644 index 0000000..503647f --- /dev/null +++ b/snamellit/packages/gh-bin.scm @@ -0,0 +1,46 @@ +(define-module (snamellit packages gh-bin) + #:use-module (ice-9 string-fun) + #:use-module (gnu packages base) + #:use-module (gnu packages curl) + #:use-module (gnu packages version-control) + #:use-module (gnu packages xorg) + #:use-module (gnu packages tls) + #:use-module (gnu packages compression) + #:use-module (gnu packages gcc) + #:use-module (guix download) + #:use-module (guix packages) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (nonguix build-system binary)) + +(define libstdc++ + ;; Libstdc++ matching the default GCC. + (make-libstdc++ gcc)) + +(define-public gh-bin + (package + (name "gh-bin") + (version "2.55.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/cli/cli/releases/download/v" + version + "/gh_" + version + "_linux_amd64.tar.gz")) + (sha256 + (base32 + "1g2jzhg4b302nmrdh2ylyb5bkklij3vg3sbgd7pwpgxmxlzhnw29")))) + (build-system binary-build-system) + (arguments + `( + #:install-plan + `(("bin/gh" "/bin/") + ("share/man/man1" "/share/man/")))) + (synopsis "A simple CLI tool for GitHub") + (description "gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.") + (home-page "https://github.com/cli/cli") + (license license:expat))) + +gh-bin