Merge pull request #23321 from jensbin/networkmanager_dmenu

networkmanager_dmenu: init at unstable-2017-04-13
This commit is contained in:
Michael Raskin 2017-05-01 19:25:44 +02:00 committed by GitHub
commit ee790bf944
3 changed files with 43 additions and 0 deletions

View File

@ -232,6 +232,7 @@
jcumming = "Jack Cummings <jack@mudshark.org>";
jdagilliland = "Jason Gilliland <jdagilliland@gmail.com>";
jefdaj = "Jeffrey David Johnson <jefdaj@gmail.com>";
jensbin = "Jens Binkert <jensbin@protonmail.com>";
jerith666 = "Matt McHenry <github@matt.mchenryfamily.org>";
jfb = "James Felix Black <james@yamtime.com>";
jgeerds = "Jascha Geerds <jascha@jgeerds.name>";

View File

@ -0,0 +1,40 @@
{ stdenv, glib, fetchFromGitHub, networkmanager, python3Packages
, gobjectIntrospection, dmenu }:
let inherit (python3Packages) python pygobject3;
in stdenv.mkDerivation rec {
name = "networkmanager_dmenu-unstable-${version}";
version = "2017-04-13";
src = fetchFromGitHub {
owner = "firecat53";
repo = "networkmanager-dmenu";
rev = "fbc0704702b32c2efb30ba6b5c0ad6f054a71a18";
sha256 = "1584zrhla1njvkrbvb1rq66q06gs510f0l1ls3z7x7jmn322y6yr";
};
buildInputs = [ glib python pygobject3 gobjectIntrospection networkmanager python3Packages.wrapPython ];
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp networkmanager_dmenu $out/bin/
'';
postFixup = ''
makeWrapperArgs="\
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH \
--prefix PYTHONPATH : \"$(toPythonPath $out):$(toPythonPath ${pygobject3})\""
wrapPythonPrograms
'';
meta = with stdenv.lib; {
description = "Small script to manage NetworkManager connections with dmenu instead of nm-applet";
homepage = https://github.com/firecat53/networkmanager-dmenu;
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.jensbin ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -3159,6 +3159,8 @@ with pkgs;
networkmanagerapplet = newScope gnome2 ../tools/networking/network-manager-applet { };
networkmanager_dmenu = callPackage ../tools/networking/networkmanager_dmenu { };
newsbeuter = callPackage ../applications/networking/feedreaders/newsbeuter { };
newsbeuter-dev = callPackage ../applications/networking/feedreaders/newsbeuter/dev.nix { };