
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19
.tar.gz \
--argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
result/bin/apply-formatting $NIXPKGS_PATH
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchgit,
|
|
pkg-config,
|
|
writeText,
|
|
libX11,
|
|
libXau,
|
|
libXdmcp,
|
|
conf ? null,
|
|
patches ? [ ],
|
|
# update script dependencies
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "slstatus";
|
|
version = "1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.suckless.org/slstatus";
|
|
rev = version;
|
|
hash = "sha256-cFah6EgApslLSlJaOy/5W9ZV9Z1lzfKye/rRh9Om3T4=";
|
|
};
|
|
|
|
preBuild =
|
|
let
|
|
configFile =
|
|
if lib.isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf;
|
|
in
|
|
''
|
|
${lib.optionalString (conf != null) "cp ${configFile} config.def.h"}
|
|
makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC)
|
|
'';
|
|
|
|
inherit patches;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
libX11
|
|
libXau
|
|
libXdmcp
|
|
];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://tools.suckless.org/slstatus/";
|
|
description = "status monitor for window managers that use WM_NAME like dwm";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [
|
|
oxzi
|
|
qusic
|
|
];
|
|
platforms = platforms.linux;
|
|
mainProgram = "slstatus";
|
|
};
|
|
}
|