diff options
author | Tom Willemse | 2022-04-27 01:16:39 -0700 |
---|---|---|
committer | Tom Willemse | 2022-04-27 01:16:39 -0700 |
commit | daf4b6c498f999bb41e82ff480bf591cc33e7d9c (patch) | |
tree | 01cb1a09676175f91bacfb4bb9d350bd0314b09c /oni/packages/hlwm-run-or-raise.scm | |
parent | 45e2fa2727371a19ec56bb648d6e116a30d52728 (diff) | |
download | new-dotfiles-daf4b6c498f999bb41e82ff480bf591cc33e7d9c.tar.gz new-dotfiles-daf4b6c498f999bb41e82ff480bf591cc33e7d9c.zip |
Add packages and install hlwm-run-or-raise and dependencies
Adding this package with the necessary dependencies makes sure that if it's
installed its dependencies are installed as well and everything should work.
Diffstat (limited to 'oni/packages/hlwm-run-or-raise.scm')
-rw-r--r-- | oni/packages/hlwm-run-or-raise.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/oni/packages/hlwm-run-or-raise.scm b/oni/packages/hlwm-run-or-raise.scm new file mode 100644 index 0000000..5083549 --- /dev/null +++ b/oni/packages/hlwm-run-or-raise.scm @@ -0,0 +1,43 @@ +(define-module (oni packages hlwm-run-or-raise) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages base) + #:use-module (gnu packages shells) + #:use-module (gnu packages xdisorg) + #:use-module (gnu packages gawk) + #:use-module (oni packages hlwm-switch-to-window)) + +(define-public hlwm-run-or-raise + (let ((commit "e2747a706d0653220e70246c925a60cd55b612d1") + (revision "0")) + (package + (name "hlwm-run-or-raise") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (uri (git-reference + (url "git://ryuslash.org/util/tom/hlwm-run-or-raise.git") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "11m8gj0dq9dpc6xl6y00mp5wzh5nck7cak4m5jvnznkqcxc4ahij")) + (file-name (git-file-name name version)))) + (propagated-inputs + (list wmctrl gawk grep hlwm-switch-to-window scsh)) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; There is no test suite. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) + (install-file "hlwm-run-or-raise" bin))))))) + (home-page "https://ryuslash.org/") + (synopsis "A simple script that either starts a program or switches to it with herbstluftwm.") + (description "Can be bound to a key to either switch to a program or start it up if it isn't running.") + (license license:gpl3+)))) |