2021-09-18 10:52:07 +00:00
|
|
|
{ autoreconfHook
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, docbook-xsl-ns
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, libX11
|
|
|
|
, libXpm
|
|
|
|
, libxslt
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stalonetray";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.8.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kolbusa";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-grxPqSYPLUstLIOKqzMActaSQ2ftYrjbalfR4HcPDRY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
preConfigure =
|
|
|
|
let
|
|
|
|
db_root = "${docbook-xsl-ns}/share/xml/docbook-xsl-ns";
|
|
|
|
ac_str = "AC_SUBST(DOCBOOK_ROOT)";
|
|
|
|
ac_str_sub = "DOCBOOK_ROOT=${db_root}; ${ac_str}";
|
|
|
|
in
|
|
|
|
''
|
|
|
|
substituteInPlace configure.ac --replace '${ac_str}' '${ac_str_sub}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
docbook-xsl-ns
|
|
|
|
docbook_xml_dtd_44
|
|
|
|
libX11
|
|
|
|
libXpm
|
|
|
|
libxslt
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Stand alone tray";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/kolbusa/stalonetray";
|
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
};
|
|
|
|
}
|