gnu: windowmaker: Use modify-phases syntax.
* gnu/packages/gnustep.scm (windowmaker)[arguments]: Use modify-phases.
This commit is contained in:
parent
8cac5bca12
commit
962cbb24c5
|
@ -46,8 +46,9 @@
|
||||||
"12p8kljqgx5hnic0zvs5mxwp7kg21sb6qjagb2qw8ydvf5amrgwx"))))
|
"12p8kljqgx5hnic0zvs5mxwp7kg21sb6qjagb2qw8ydvf5amrgwx"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (alist-cons-before
|
'(#:phases
|
||||||
'configure 'pre-configure
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'configure 'pre-configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; 'wmaker' wants to invoke 'wmaker.inst' the first time,
|
;; 'wmaker' wants to invoke 'wmaker.inst' the first time,
|
||||||
;; and the 'wmsetbg', so make sure it uses the right ones.
|
;; and the 'wmsetbg', so make sure it uses the right ones.
|
||||||
|
@ -66,17 +67,15 @@
|
||||||
;; The path to wmsetbg in Guix requires 67 extra characters.
|
;; The path to wmsetbg in Guix requires 67 extra characters.
|
||||||
(substitute* "src/defaults.c"
|
(substitute* "src/defaults.c"
|
||||||
(("len = strlen\\(text\\) \\+ 40;")
|
(("len = strlen\\(text\\) \\+ 40;")
|
||||||
(string-append "len = strlen(text) + 107;")))))
|
(string-append "len = strlen(text) + 107;"))))))
|
||||||
(alist-cons-after
|
(add-after 'install 'wrap
|
||||||
'install 'wrap
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(bin (string-append out "/bin")))
|
(bin (string-append out "/bin")))
|
||||||
;; In turn, 'wmaker.inst' wants to invoke 'wmmenugen'
|
;; In turn, 'wmaker.inst' wants to invoke 'wmmenugen'
|
||||||
;; etc., so make sure everything is in $PATH.
|
;; etc., so make sure everything is in $PATH.
|
||||||
(wrap-program (string-append bin "/wmaker.inst")
|
(wrap-program (string-append bin "/wmaker.inst")
|
||||||
`("PATH" ":" prefix (,bin)))))
|
`("PATH" ":" prefix (,bin)))))))))
|
||||||
%standard-phases))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("libxmu" ,libxmu)
|
`(("libxmu" ,libxmu)
|
||||||
("libxft" ,libxft)
|
("libxft" ,libxft)
|
||||||
|
|
Loading…
Reference in New Issue