nixpkgs/pkgs/applications/window-managers/clfswm/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, autoconf, sbcl, lispPackages, xdpyinfo, texinfo4
, makeWrapper }:
2015-11-04 14:15:52 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2015-11-04 14:15:52 +00:00
name = "clfswm";
src = fetchgit {
url = "https://gitlab.common-lisp.net/clfswm/clfswm.git";
rev = "refs/heads/master";
sha256 = "0hynzh3a1zr719cxfb0k4cvh5lskzs616hwn7p942isyvhwzhynd";
2015-11-04 14:15:52 +00: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 09:28:48 +00:00
configurePhase = ''
substituteInPlace load.lisp --replace \
";; (setf *contrib-dir* \"/usr/local/lib/clfswm/\")" \
"(setf *contrib-dir* \"$out/lib/clfswm/\")"
'';
2015-11-04 14:15:52 +00: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
'';
meta = with lib; {
2015-11-04 14:15:52 +00:00
description = "A(nother) Common Lisp FullScreen Window Manager";
homepage = "https://common-lisp.net/project/clfswm/";
2015-11-04 14:15:52 +00:00
license = licenses.gpl3;
2015-11-11 05:54:17 +00:00
maintainers = with maintainers; [ robgssp ];
2015-11-04 14:15:52 +00:00
platforms = platforms.linux;
broken = true;
2015-11-04 14:15:52 +00:00
};
}