nixpkgs/pkgs/applications/misc/slstatus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

2023-02-15 22:10:18 +00:00
{ lib
, stdenv
, fetchgit
, pkg-config
, writeText
, libX11
, libXau
, libXdmcp
, conf ? null
, patches ? []
}:
2018-03-23 16:02:53 +00:00
stdenv.mkDerivation rec {
pname = "slstatus";
version = "unstable-2022-12-19";
2018-03-23 16:02:53 +00:00
src = fetchgit {
url = "https://git.suckless.org/slstatus";
rev = "c919def84fd4f52f501548e5f7705b9d56dd1459";
hash = "sha256-nEIHIO8CAYdtX8GniO6GDEaHj7kEu81b05nCMVdr2SE=";
2018-03-23 16:02:53 +00:00
};
configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf);
2023-03-01 08:08:05 +00:00
preBuild = ''
${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"}
2023-02-15 22:10:18 +00:00
makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC)
'';
2018-03-23 16:02:53 +00:00
inherit patches;
nativeBuildInputs = [ pkg-config ];
2023-02-15 22:10:18 +00:00
buildInputs = [ libX11 libXau libXdmcp];
2021-11-13 12:32:53 +00:00
2018-03-23 16:02:53 +00:00
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
homepage = "https://tools.suckless.org/slstatus/";
2018-03-23 16:02:53 +00:00
description = "status monitor for window managers that use WM_NAME like dwm";
license = licenses.isc;
maintainers = with maintainers; [ oxzi ];
2018-03-23 16:02:53 +00:00
platforms = platforms.linux;
};
}