aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/networking/connman
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/connman')
-rw-r--r--nixpkgs/pkgs/tools/networking/connman/connman-ncurses/default.nix13
-rw-r--r--nixpkgs/pkgs/tools/networking/connman/connmanui/default.nix34
2 files changed, 11 insertions, 36 deletions
diff --git a/nixpkgs/pkgs/tools/networking/connman/connman-ncurses/default.nix b/nixpkgs/pkgs/tools/networking/connman/connman-ncurses/default.nix
index 7bfb4571e10..1e7f54f9ddb 100644
--- a/nixpkgs/pkgs/tools/networking/connman/connman-ncurses/default.nix
+++ b/nixpkgs/pkgs/tools/networking/connman/connman-ncurses/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dbus, json_c, ncurses, connman }:
+{ stdenv, fetchpatch, fetchFromGitHub, autoreconfHook, pkgconfig, dbus, json_c, ncurses, connman }:
stdenv.mkDerivation {
pname = "connman-ncurses";
@@ -11,12 +11,21 @@ stdenv.mkDerivation {
sha256 = "1831r0776fv481g8kgy1dkl750pzv47835dw11sslq2k6mm6i9p1";
};
+ patches = [
+ # Fix build with json-c 0.14
+ (fetchpatch {
+ url = "https://github.com/void-linux/void-packages/raw/5830ce60e922b7dced8157ededda8c995adb3bb9/srcpkgs/connman-ncurses/patches/lowercase-boolean.patch";
+ extraPrefix = "";
+ sha256 = "uK83DeRyXS2Y0ZZpTYvYNh/1ZM2QQ7QpajiBztaEuSM=";
+ })
+ ];
+
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ dbus ncurses json_c connman ];
NIX_CFLAGS_COMPILE = "-Wno-error";
-
+
installPhase = ''
mkdir -p "$out/bin"
cp -va connman_ncurses "$out/bin/"
diff --git a/nixpkgs/pkgs/tools/networking/connman/connmanui/default.nix b/nixpkgs/pkgs/tools/networking/connman/connmanui/default.nix
deleted file mode 100644
index 51c97e6cb7e..00000000000
--- a/nixpkgs/pkgs/tools/networking/connman/connmanui/default.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{ 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;
- };
-}