nixpkgs/pkgs/applications/misc/slstatus/default.nix
Alvar Penning 0a53c6b565 maintainers: rename geistesk to oxzi
For reasons I have renamed my GitHub account and would like to include
this name change here.
2020-08-15 16:03:46 +02:00

33 lines
915 B
Nix

{ stdenv, fetchgit, pkgconfig, writeText, libX11, conf ? null, patches ? [] }:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "slstatus";
version = "unstable-2019-02-16";
src = fetchgit {
url = "https://git.suckless.org/slstatus";
rev = "b14e039639ed28005fbb8bddeb5b5fa0c93475ac";
sha256 = "0kayyhpmppybhwndxgabw48wsk9v8x9xdb05xrly9szkw3jbvgw4";
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
inherit patches;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 ];
installFlags = [ "PREFIX=$(out)" ];
meta = {
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 ];
platforms = platforms.linux;
};
}