From 87f6e05dd458bb1376f0ddfd33ac2393e11b0a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Sat, 17 Feb 2018 06:38:37 -0200 Subject: [PATCH] connman-ncurses: init at 2015-07-21 (#25448) --- .../networking/connman-ncurses/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/networking/connman-ncurses/default.nix diff --git a/pkgs/tools/networking/connman-ncurses/default.nix b/pkgs/tools/networking/connman-ncurses/default.nix new file mode 100644 index 000000000000..8c4d4fa84865 --- /dev/null +++ b/pkgs/tools/networking/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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 33abc76287a2..7c87be5989cf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1573,6 +1573,8 @@ with pkgs; connman-gtk = callPackage ../tools/networking/connman-gtk { }; + connman-ncurses = callPackage ../tools/networking/connman-ncurses { }; + connman-notify = callPackage ../tools/networking/connman-notify { }; connmanui = callPackage ../tools/networking/connmanui { };