diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2019-11-04 04:09:31 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2019-11-09 19:09:54 +0300 |
| commit | 82638d35f0a1c88629934bd92cd44dd3c7f3eed1 (patch) | |
| tree | 4615281e6532a64bd5d6030d28d5135ca1850476 | |
| parent | guix: emacs-info-colors: Delete patch. (diff) | |
| download | guix-wigust-82638d35f0a1c88629934bd92cd44dd3c7f3eed1.tar.gz | |
gnu: Add with.
* guix/wigust/packages/admin.scm (with): New variable.
| -rw-r--r-- | guix/wigust/packages/admin.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/guix/wigust/packages/admin.scm b/guix/wigust/packages/admin.scm index 47e21f5..9ed804f 100644 --- a/guix/wigust/packages/admin.scm +++ b/guix/wigust/packages/admin.scm @@ -23,7 +23,9 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system meson) + #:use-module (guix build-system trivial) #:use-module (gnu packages) + #:use-module (gnu packages bash) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages pkg-config) @@ -55,3 +57,39 @@ (description "@code{pscircle} visualizes Linux processes in a form of radial tree") (license license:gpl2+))) + +(define-public with + (let ((commit "28eb40bbc08d171daabf0210f420477ad75e16d6")) + (package + (name "with") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mchav/with.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0y8m2z4nbq67iy95b581rdfz2hss37fbgxfna66qzz1xgcnfr8cq")))) + (build-system trivial-build-system) + (inputs + `(("bash" ,bash))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (copy-recursively (assoc-ref %build-inputs "source") ".") + (substitute* "with" + (("/usr/bin/env bash") (string-append (assoc-ref %build-inputs "bash") + "/bin/bash"))) + (install-file "with" (string-append %output "/bin")) + (mkdir-p (string-append %output "/etc/bash_completion.d")) + (copy-file "with.bash-completion" + (string-append %output "/etc/bash_completion.d/with")) + #t))) + (home-page "https://github.com/mchav/with/") + (synopsis "Command prefixing for continuous workflow using a single tool") + (description "This package provides command prefixing for continuous workflow using a single tool.") + (license license:asl2.0)))) |
