2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchgit, autoconf, sbcl, lispPackages, xdpyinfo, texinfo4
|
2018-07-21 02:44:44 +02:00
|
|
|
, makeWrapper }:
|
2015-11-04 15:15:52 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2022-03-07 12:37:20 +01:00
|
|
|
pname = "clfswm";
|
|
|
|
version = "unstable-2016-11-12";
|
2015-11-04 15:15:52 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.common-lisp.net/clfswm/clfswm.git";
|
2022-03-07 12:37:20 +01:00
|
|
|
rev = "3c7721dba6339ebb4f8c8d7ce2341740fa86f837";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "0hynzh3a1zr719cxfb0k4cvh5lskzs616hwn7p942isyvhwzhynd";
|
2015-11-04 15:15:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
texinfo4 makeWrapper autoconf
|
|
|
|
sbcl
|
|
|
|
lispPackages.clx
|
|
|
|
lispPackages.cl-ppcre
|
|
|
|
xdpyinfo
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./require-clx.patch ];
|
|
|
|
|
|
|
|
# Stripping destroys the generated SBCL image
|
|
|
|
dontStrip = true;
|
|
|
|
|
2015-12-02 10:28:48 +01:00
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace load.lisp --replace \
|
|
|
|
";; (setf *contrib-dir* \"/usr/local/lib/clfswm/\")" \
|
|
|
|
"(setf *contrib-dir* \"$out/lib/clfswm/\")"
|
|
|
|
'';
|
|
|
|
|
2015-11-04 15:15:52 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
make DESTDIR=$out install
|
|
|
|
|
|
|
|
# Paths in the compressed image $out/bin/clfswm are not
|
|
|
|
# recognized by Nix. Add explicit reference here.
|
|
|
|
mkdir $out/nix-support
|
|
|
|
echo ${xdpyinfo} ${lispPackages.clx} ${lispPackages.cl-ppcre} > $out/nix-support/depends
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-11-04 15:15:52 +01:00
|
|
|
description = "A(nother) Common Lisp FullScreen Window Manager";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://common-lisp.net/project/clfswm/";
|
2015-11-04 15:15:52 +01:00
|
|
|
license = licenses.gpl3;
|
2015-11-11 06:54:17 +01:00
|
|
|
maintainers = with maintainers; [ robgssp ];
|
2015-11-04 15:15:52 +01:00
|
|
|
platforms = platforms.linux;
|
2016-03-18 22:16:19 +01:00
|
|
|
broken = true;
|
2015-11-04 15:15:52 +01:00
|
|
|
};
|
|
|
|
}
|