mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{ lib, stdenv, fetchgit, autoconf, sbcl, lispPackages, xdpyinfo, texinfo4
|
|
, makeWrapper }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "clfswm";
|
|
|
|
src = fetchgit {
|
|
url = "https://gitlab.common-lisp.net/clfswm/clfswm.git";
|
|
rev = "refs/heads/master";
|
|
sha256 = "0hynzh3a1zr719cxfb0k4cvh5lskzs616hwn7p942isyvhwzhynd";
|
|
};
|
|
|
|
buildInputs = [
|
|
texinfo4 makeWrapper autoconf
|
|
sbcl
|
|
lispPackages.clx
|
|
lispPackages.cl-ppcre
|
|
xdpyinfo
|
|
];
|
|
|
|
patches = [ ./require-clx.patch ];
|
|
|
|
# Stripping destroys the generated SBCL image
|
|
dontStrip = true;
|
|
|
|
configurePhase = ''
|
|
substituteInPlace load.lisp --replace \
|
|
";; (setf *contrib-dir* \"/usr/local/lib/clfswm/\")" \
|
|
"(setf *contrib-dir* \"$out/lib/clfswm/\")"
|
|
'';
|
|
|
|
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; {
|
|
description = "A(nother) Common Lisp FullScreen Window Manager";
|
|
homepage = "https://common-lisp.net/project/clfswm/";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ robgssp ];
|
|
platforms = platforms.linux;
|
|
broken = true;
|
|
};
|
|
}
|