about summary refs log tree commit diff
path: root/pkgs/tools/networking/connman/connman-ncurses
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-17 15:40:30 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-17 15:42:25 -0500
commit1592e03abaed9be050e1546fb6dd28d2436f9c39 (patch)
treed4318f6faaa2bb43d66564fa2328da22ead732fc /pkgs/tools/networking/connman/connman-ncurses
parent6bd83e624c1d3478a255044704fd173ad84198fd (diff)
downloadnixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.gz
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.bz2
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.lz
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.xz
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.zst
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.zip
treewide: rename bad filenames
Most of these can easily be moved to subdirectories of other
directories. This helps reduce clutter in the main trees.
Diffstat (limited to 'pkgs/tools/networking/connman/connman-ncurses')
-rw-r--r--pkgs/tools/networking/connman/connman-ncurses/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/networking/connman/connman-ncurses/default.nix b/pkgs/tools/networking/connman/connman-ncurses/default.nix
new file mode 100644
index 000000000000..8c4d4fa84865
--- /dev/null
+++ b/pkgs/tools/networking/connman/connman-ncurses/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, dbus, json_c, ncurses, connman }:
+
+stdenv.mkDerivation rec {
+  name = "connman-ncurses-${version}";
+  version = "2015-07-21";
+
+  src = fetchFromGitHub {
+    owner = "eurogiciel-oss";
+    repo = "connman-json-client";
+    rev = "3c34b2ee62d2e188090d20e7ed2fd94bab9c47f2";
+    sha256 = "1831r0776fv481g8kgy1dkl750pzv47835dw11sslq2k6mm6i9p1";
+  };
+
+  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/"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Simple ncurses UI for connman";
+    homepage = https://github.com/eurogiciel-oss/connman-json-client;
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.romildo ];
+  };
+}