504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ autoreconfHook
|
|
, docbook_xml_dtd_44
|
|
, docbook-xsl-ns
|
|
, fetchFromGitHub
|
|
, lib
|
|
, libX11
|
|
, libXpm
|
|
, libxslt
|
|
, stdenv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "stalonetray";
|
|
version = "0.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kolbusa";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/55oP6xA1LeLawOBkhh9acaDcObO4L4ojcy7e3vwnBw=";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
description = "Stand alone tray";
|
|
homepage = "https://github.com/kolbusa/stalonetray";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ raskin ];
|
|
mainProgram = "stalonetray";
|
|
};
|
|
}
|