aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/networking/connman/connmanui/default.nix
blob: 51c97e6cb7ecb04413f70d48aa5c38517fcd1ab3 (plain)
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
{ stdenv, fetchgit, autoconf, automake, libtool, glib, gtk3, dbus, pkgconfig, file, intltool, connman }:

stdenv.mkDerivation rec {
  pname = "connmanui";
  rev = "fce0af94e121bde77c7fa2ebd6a319f0180c5516";
  version = "22062015-${rev}";

  src = fetchgit {
    inherit rev;
    url = "git://github.com/tbursztyka/connman-ui.git";
    sha256 = "0ixx8c9cfdp480z21xfjb7n1x27sf1g8gmgbmcfhr0k888dmziyy";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ autoconf automake libtool glib gtk3 dbus file intltool connman ];

  preConfigure = ''
    rm m4/intltool.m4
    ln -s ${intltool}/share/aclocal/intltool.m4 m4/
    set -e
    ./autogen.sh
    sed -i "s/\/usr\/bin\/file/file/g" ./configure
  '';

  configureScript = "./configure";

  meta = {
    description = "A full-featured GTK based trayicon UI for ConnMan";
    homepage = "https://github.com/tbursztyka/connman-ui";
    maintainers = [ stdenv.lib.maintainers.matejc ];
    platforms = stdenv.lib.platforms.linux;
    license = stdenv.lib.licenses.gpl2;
  };
}