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 { };