2021-05-25 05:28:39 +02:00
|
|
|
(define-module (oni packages stumpwm)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (gnu packages wm)
|
|
|
|
#:use-module (gnu packages lisp-xyz))
|
|
|
|
|
|
|
|
(define-public stumpwm+swank
|
|
|
|
(package
|
|
|
|
(inherit stumpwm)
|
|
|
|
(name "stumpwm-with-swank")
|
|
|
|
(outputs '("out"))
|
|
|
|
(inputs
|
|
|
|
`(("stumpwm" ,stumpwm "lib")
|
|
|
|
("swank" ,sbcl-slime-swank)))
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments stumpwm)
|
|
|
|
((#:phases phases)
|
|
|
|
`(modify-phases ,phases
|
|
|
|
(replace 'build-program
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(program (string-append out "/bin/stumpwm")))
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
(build-program program outputs
|
|
|
|
#:entry-program '((stumpwm:stumpwm) 0)
|
|
|
|
#:dependencies '("stumpwm" "swank")
|
|
|
|
#:dependency-prefixes
|
|
|
|
(map (lambda (input) (assoc-ref inputs input))
|
|
|
|
'("stumpwm" "swank")))
|
|
|
|
#t)))
|
|
|
|
(delete 'copy-source)
|
|
|
|
(delete 'build)
|
|
|
|
(delete 'check)
|
2023-06-20 08:09:43 +02:00
|
|
|
(delete 'remove-temporary-cache)
|
2021-05-25 05:28:39 +02:00
|
|
|
(delete 'cleanup)))))))
|