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

35 lines
947 B
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, pkg-config, writeText, libX11, conf ? null, patches ? [] }:
2018-03-23 16:02:53 +00:00
2021-01-15 05:42:41 +00:00
with lib;
2018-03-23 16:02:53 +00:00
stdenv.mkDerivation rec {
pname = "slstatus";
version = "unstable-2019-02-16";
2018-03-23 16:02:53 +00:00
src = fetchgit {
url = "https://git.suckless.org/slstatus";
rev = "b14e039639ed28005fbb8bddeb5b5fa0c93475ac";
sha256 = "0kayyhpmppybhwndxgabw48wsk9v8x9xdb05xrly9szkw3jbvgw4";
2018-03-23 16:02:53 +00:00
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
inherit patches;
nativeBuildInputs = [ pkg-config ];
2018-03-23 16:02:53 +00:00
buildInputs = [ libX11 ];
2021-11-13 12:32:53 +00:00
makeFlags = [ "CC:=$(CC)" ];
2018-03-23 16:02:53 +00:00
installFlags = [ "PREFIX=$(out)" ];
meta = {
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;
};
}