about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/stalonetray/default.nix
blob: 218b2a4fefd25a89222b16a1561cc0c6a9027e47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ autoreconfHook
, docbook_xml_dtd_44
, docbook-xsl-ns
, fetchFromGitHub
, lib
, libX11
, libXpm
, libxslt
, stdenv
}:

stdenv.mkDerivation rec {
  pname = "stalonetray";
  version = "0.8.4";

  src = fetchFromGitHub {
    owner = "kolbusa";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-grxPqSYPLUstLIOKqzMActaSQ2ftYrjbalfR4HcPDRY=";
  };

  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 ];
  };
}