From 38d896aeee56701bcf2efe42528a1ffea063e2fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Wed, 20 Jul 2016 22:44:55 -0300 Subject: [PATCH] connman-notify: init at 2014-06-23 --- .../networking/connman-notify/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/networking/connman-notify/default.nix diff --git a/pkgs/tools/networking/connman-notify/default.nix b/pkgs/tools/networking/connman-notify/default.nix new file mode 100644 index 000000000000..070666901724 --- /dev/null +++ b/pkgs/tools/networking/connman-notify/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper }: + +stdenv.mkDerivation rec { + name = "connman-notify-${version}"; + version = "2014-06-23"; + + src = fetchFromGitHub { + owner = "wavexx"; + repo = "connman-notify"; + rev = "0ed9b5e4a0e1f03c83c4589cabf410cac66cd11d"; + sha256 = "0lhk417fdg3qxs1marpqp277bdxhwnbyrld9xj224bfk5v7xi4bg"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + buildInputs = [ + pythonPackages.python + pythonPackages.dbus + pythonPackages.pygobject + pythonPackages.pygtk + pythonPackages.notify + ]; + + installPhase = '' + mkdir -p $out/bin + cp -vai connman-notify $out/bin/ + ''; + + preFixup = '' + wrapProgram $out/bin/connman-notify --prefix PYTHONPATH : "$PYTHONPATH" + ''; + + meta = with stdenv.lib; { + description = "Desktop notification integration for connman"; + homepage = https://github.com/wavexx/connman-notify; + license = licenses.gpl2; + platforms = platforms.unix; + maintainers = [ maintainers.romildo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a0f4a5adffa..e5aba1fa68cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1054,6 +1054,8 @@ in connman = callPackage ../tools/networking/connman { }; + connman-notify = callPackage ../tools/networking/connman-notify { }; + connmanui = callPackage ../tools/networking/connmanui { }; connman_dmenu = callPackage ../tools/networking/connman_dmenu { };