diff options
author | Simon Streit <simon@netpanic.org> | 2022-04-19 13:37:15 +0200 |
---|---|---|
committer | Simon Streit <simon@netpanic.org> | 2023-06-19 21:36:36 +0200 |
commit | 8dadda00a32f8ec0350fa15125dd51f3ad41dedd (patch) | |
tree | ca266d2b809c9b1f138156bf12f554d7d41bace8 | |
parent | 1a0066af5f8e6505103e93b86512a9931620823c (diff) |
siguix: Add mons.
* siguix/packages/mons.scm (mons): New variable.
-rw-r--r-- | siguix/packages/mons.scm | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/siguix/packages/mons.scm b/siguix/packages/mons.scm new file mode 100644 index 0000000..6ac5a1b --- /dev/null +++ b/siguix/packages/mons.scm @@ -0,0 +1,72 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Simon Streit <simon@netpanic.org> +;;; +;;; This file is NOT part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. + +(define-module (siguix packages mons) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (gnu packages) + #:use-module (gnu packages xorg) + #:use-module (gnu packages man)) + +(define-public mons + (package + (name "mons") + (version "0.8.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ventto/mons") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dvfw40p81n24c28wvl39vn8acr2n0r4wh69fxp05afmp5lhp3vv")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;there are none. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'fix-prefix + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("/usr") "")))) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (setenv "DESTDIR" (assoc-ref %outputs "out")) + (invoke "make" "install"))) + (add-after 'build 'fix-lib-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "mons" + (("/usr/lib") (string-append (assoc-ref outputs "out") + "/lib")))))))) + (native-inputs (list help2man)) + (inputs (list xrandr)) + (home-page "https://github.com/Ventto/mons") + (synopsis "POSIX Shell script to quickly manage monitors on X") + (description + "A POSIX compliant script that provides well-known modes like +computer, duplicate, extend and projector mode as well as selecting +and positioning one or two monitors among those plugged in.") + (license license:expat))) |