2021-06-28 23:13:55 +00:00
|
|
|
{ fetchurl, lib, stdenv, libconfuse, yajl, alsa-lib, libpulseaudio, libnl, pkg-config, asciidoc, xmlto, docbook_xml_dtd_45, docbook_xsl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "i3status";
|
|
|
|
version = "2.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://i3wm.org/i3status/i3status-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config asciidoc xmlto docbook_xml_dtd_45 docbook_xsl ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ libconfuse yajl alsa-lib libpulseaudio libnl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "all" "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
# This hack is needed because for unknown reasons configure generates a broken makefile on the 2.13 release under nixos
|
|
|
|
preBuild = ''
|
|
|
|
sed -i -e 's/\$(TEST_LOGS) \$(TEST_LOGS/\$(TEST_LOGS)/g' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Generates a status line for i3bar, dzen2, xmobar or lemonbar";
|
|
|
|
homepage = "https://i3wm.org";
|
|
|
|
maintainers = [ ];
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|