;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2014 Ludovic Courtès ;;; Copyright © 2016 Alex ter Weele ;;; Copyright © 2017, 2019 Ricardo Wurmus ;;; Copyright © 2017 Nikita ;;; Copyright © 2019 Pierre-Moana Levesque ;;; Copyright © 2022 Tobias Geerinckx-Rice ;;; ;;; This file is 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 . (define-module (gnu packages guile-wm) #:use-
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/java-graphics.scm')
0 files changed, 0 insertions, 0 deletions
e "\n")))))) (add-after 'install 'set-load-path (lambda* (#:key inputs outputs #:allow-other-keys) ;; Put Guile-XCB's and Guile-WM's modules in the ;; search path of PROG. (let* ((out (assoc-ref outputs "out")) (effective (read-line (open-pipe* OPEN_READ "guile" "-c" "(display (effective-version))"))) (prog (string-append out "/bin/guile-wm")) (mods (string-append out "/share/guile/site/" effective)) (gos (string-append out "/lib/guile/" effective "/site-ccache")) (xcb (assoc-ref inputs "guile-xcb"))) (wrap-program prog `("GUILE_AUTO_COMPILE" ":" = ("0")) `("GUILE_LOAD_PATH" ":" prefix (,mods ,(string-append xcb "/share/guile/site/" effective))) `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,gos ,(string-append xcb "/lib/guile/" effective "/site-ccache"))))))) (add-after 'install 'install-go-files (lambda* (#:key outputs inputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (effective (read-line (open-pipe* OPEN_READ "guile" "-c" "(display (effective-version))"))) (module-dir (string-append out "/share/guile/site/" effective)) (object-dir (string-append out "/lib/guile/" effective "/site-ccache")) (prefix (string-length module-dir))) (setenv "GUILE_AUTO_COMPILE" "0") ;; compile to the destination (for-each (lambda (file) (let* ((base (string-drop (string-drop-right file 4) prefix)) (go (string-append object-dir base ".go"))) (invoke "guild" "compile" "-L" module-dir file "-o" go))) (find-files module-dir "\\.scm$"))))) (add-after 'install 'install-xsession (lambda* (#:key outputs #:allow-other-keys) ;; add a .desktop file to xsessions (let ((xsessions (string-append %output "/share/xsessions"))) (mkdir-p xsessions) (call-with-output-file (string-append xsessions "/guile-wm.desktop") (lambda (port) (format port "[Desktop Entry]~@ Name=~a~@ Comment=~a~@ Exec=~a/bin/guile-wm~@ Type=Application~%" ,name ,synopsis %output))))))))) (native-inputs (list guile-2.2 guile-xcb pkg-config texinfo)) (inputs (list guile-2.2 guile-xcb)) (home-page "https://github.com/mwitmer/guile-wm/releases") (description "Guile-WM is a simple window manager that's completely customizable—you have total control of what it does by choosing which modules to include. Included with it are a few modules that provide basic TinyWM-like window management, some window record-keeping, multi-monitor support, and emacs-like keymaps and minibuffer. At this point, it's just enough to get you started.") (license gpl3+))))