hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / by-name / st / stalonetray / package.nix
blobc2ce921da8e77958662971734d68b406fb5dac96
2   autoreconfHook,
3   docbook_xml_dtd_44,
4   docbook-xsl-ns,
5   fetchFromGitHub,
6   lib,
7   libX11,
8   libXpm,
9   libxslt,
10   stdenv,
13 stdenv.mkDerivation rec {
14   pname = "stalonetray";
15   version = "0.8.5";
17   src = fetchFromGitHub {
18     owner = "kolbusa";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "sha256-/55oP6xA1LeLawOBkhh9acaDcObO4L4ojcy7e3vwnBw=";
22   };
24   preConfigure =
25     let
26       db_root = "${docbook-xsl-ns}/share/xml/docbook-xsl-ns";
27       ac_str = "AC_SUBST(DOCBOOK_ROOT)";
28       ac_str_sub = "DOCBOOK_ROOT=${db_root}; ${ac_str}";
29     in
30     ''
31       substituteInPlace configure.ac --replace '${ac_str}' '${ac_str_sub}'
32     '';
34   nativeBuildInputs = [
35     autoreconfHook
36     docbook-xsl-ns
37     docbook_xml_dtd_44
38     libX11
39     libXpm
40     libxslt
41   ];
43   hardeningDisable = [ "format" ];
45   meta = with lib; {
46     description = "Stand alone tray";
47     homepage = "https://github.com/kolbusa/stalonetray";
48     license = licenses.gpl2Only;
49     platforms = platforms.linux;
50     maintainers = with maintainers; [ raskin ];
51     mainProgram = "stalonetray";
52   };