2017-03-01 05:55:09 +01:00
|
|
|
{ stdenv, glib, fetchFromGitHub, networkmanager, python3Packages
|
2017-05-01 19:06:23 +02:00
|
|
|
, gobjectIntrospection, dmenu }:
|
2017-03-01 05:55:09 +01:00
|
|
|
|
|
|
|
let inherit (python3Packages) python pygobject3;
|
|
|
|
in stdenv.mkDerivation rec {
|
2017-05-01 19:06:23 +02:00
|
|
|
name = "networkmanager_dmenu-unstable-${version}";
|
2017-05-30 15:50:10 +02:00
|
|
|
version = "2017-05-28";
|
2017-03-01 05:55:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "firecat53";
|
|
|
|
repo = "networkmanager-dmenu";
|
2017-05-30 15:50:10 +02:00
|
|
|
rev = "eeb8e6922dee887890884f129b51bb21b0047d30";
|
|
|
|
sha256 = "00n82sjjqk76sfxi92f5vnzpngk66cqwyzqdanbszpl019ajr5h6";
|
2017-03-01 05:55:09 +01:00
|
|
|
};
|
|
|
|
|
2017-05-01 19:06:23 +02:00
|
|
|
buildInputs = [ glib python pygobject3 gobjectIntrospection networkmanager python3Packages.wrapPython ];
|
2017-03-01 05:55:09 +01:00
|
|
|
|
2017-05-01 19:06:23 +02:00
|
|
|
dontBuild = true;
|
2017-03-01 05:55:09 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp networkmanager_dmenu $out/bin/
|
|
|
|
'';
|
|
|
|
|
2017-05-01 19:06:23 +02:00
|
|
|
postFixup = ''
|
|
|
|
makeWrapperArgs="\
|
|
|
|
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH \
|
|
|
|
--prefix PYTHONPATH : \"$(toPythonPath $out):$(toPythonPath ${pygobject3})\""
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2017-03-01 05:55:09 +01:00
|
|
|
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;
|
2017-05-01 19:06:23 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.jensbin ];
|
2017-03-01 05:55:09 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|