Merge pull request #37706 from geistesk/slstatus-unstable-2018-03-21

slstatus: init at unstable-2018-03-28
This commit is contained in:
Matthew Justin Bauer 2018-03-31 19:19:54 -05:00 committed by GitHub
commit 2e705b0ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchgit, pkgconfig, writeText, libX11, conf ? null }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "slstatus-${version}";
version = "unstable-2018-03-28";
src = fetchgit {
url = https://git.suckless.org/slstatus;
rev = "faa52bdcc0221de2d8fae950e409a8ac5e05bfcd";
sha256 = "0i8k7gjvx51y0mwxjlqhyk2dpvkb2d3y8x4l6ckdnyiy5632pn76";
};
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
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; [ geistesk ];
platforms = platforms.linux;
};
}

View File

@ -4809,6 +4809,10 @@ with pkgs;
slsnif = callPackage ../tools/misc/slsnif { };
slstatus = callPackage ../applications/misc/slstatus {
conf = config.slstatus.conf or null;
};
smartmontools = callPackage ../tools/system/smartmontools {
inherit (darwin.apple_sdk.frameworks) IOKit ApplicationServices;
};