gnu: ratpoison: Clean definition.
* gnu/packages/ratpoison.scm (ratpoison)[arguments]: Use modify-phases. [inputs]: Sort alphabetically. Move ratpoison.desktop to ... [native-inputs]: ... here.
This commit is contained in:
parent
2d0fd07bb9
commit
45fed6d32c
|
@ -44,8 +44,8 @@
|
||||||
(package
|
(package
|
||||||
(name "ratpoison")
|
(name "ratpoison")
|
||||||
(version "1.4.8")
|
(version "1.4.8")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin (method url-fetch)
|
||||||
(uri (string-append "mirror://savannah/ratpoison/ratpoison-"
|
(uri (string-append "mirror://savannah/ratpoison/ratpoison-"
|
||||||
version ".tar.xz"))
|
version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
|
@ -55,32 +55,32 @@
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(alist-cons-after
|
(modify-phases %standard-phases
|
||||||
'install 'install-xsession
|
(add-after 'install 'install-xsession
|
||||||
(lambda _
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((file (assoc-ref %build-inputs "ratpoison.desktop"))
|
(let ((rpd "ratpoison.desktop")
|
||||||
(xsessions (string-append %output "/share/xsessions"))
|
(dst (string-append (assoc-ref outputs "out")
|
||||||
(target (string-append xsessions "/ratpoison.desktop")))
|
"/share/xsessions/")))
|
||||||
(mkdir-p xsessions)
|
(mkdir-p dst)
|
||||||
(copy-file file target)))
|
(copy-file (assoc-ref inputs rpd)
|
||||||
%standard-phases)))
|
(string-append dst rpd))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libXi" ,libxi)
|
`(("inputproto" ,inputproto)
|
||||||
("readline" ,readline)
|
|
||||||
("xextproto" ,xextproto)
|
|
||||||
("libXtst" ,libxtst)
|
|
||||||
("freetype" ,freetype)
|
|
||||||
("fontconfig" ,fontconfig)
|
("fontconfig" ,fontconfig)
|
||||||
("libxinerama" ,libxinerama)
|
("freetype" ,freetype)
|
||||||
("libXft" ,libxft)
|
("libXft" ,libxft)
|
||||||
|
("libXi" ,libxi)
|
||||||
|
("libxinerama" ,libxinerama)
|
||||||
("libXpm" ,libxpm)
|
("libXpm" ,libxpm)
|
||||||
("libXt" ,libxt)
|
("libXt" ,libxt)
|
||||||
("inputproto" ,inputproto)
|
("libXtst" ,libxtst)
|
||||||
("libX11" ,libx11)
|
("libX11" ,libx11)
|
||||||
("ratpoison.desktop" ,ratpoison.desktop)))
|
("readline" ,readline)
|
||||||
|
("xextproto" ,xextproto)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("perl",perl)
|
`(("perl",perl)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)
|
||||||
|
("ratpoison.desktop" ,ratpoison.desktop)))
|
||||||
(home-page "http://www.nongnu.org/ratpoison/")
|
(home-page "http://www.nongnu.org/ratpoison/")
|
||||||
(synopsis "Simple mouse-free tiling window manager")
|
(synopsis "Simple mouse-free tiling window manager")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue