1 { stdenv, fetchurl, lib, file
3 , gtkVersion ? "3", gtk2 ? null, gtk3 ? null }:
7 stdenv.mkDerivation rec {
8 pname = "libindicator-gtk${gtkVersion}";
12 url = "https://launchpad.net/libindicator/${lib.versions.majorMinor version}/${version}/+download/libindicator-${version}.tar.gz";
13 sha256 = "b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f";
16 nativeBuildInputs = [ pkg-config ];
18 buildInputs = [ (if gtkVersion == "2" then gtk2 else gtk3) ];
21 substituteInPlace configure \
22 --replace 'LIBINDICATOR_LIBS+="$LIBM"' 'LIBINDICATOR_LIBS+=" $LIBM"'
23 for f in {build-aux/ltmain.sh,configure,m4/libtool.m4}; do
25 --replace /usr/bin/file ${file}/bin/file
32 "--localstatedir=/var"
33 "--with-gtk=${gtkVersion}"
37 "sysconfdir=\${out}/etc"
38 "localstatedir=\${TMPDIR}"
41 doCheck = false; # fails 8 out of 8 tests
44 description = "A set of symbols and convenience functions for Ayatana indicators";
45 homepage = "https://launchpad.net/libindicator";
46 license = licenses.gpl3;
47 platforms = platforms.linux;
48 maintainers = [ maintainers.msteen ];