1 { lib, stdenv, glib, fetchFromGitHub, networkmanager, python3Packages
2 , gobject-introspection }:
4 let inherit (python3Packages) python pygobject3;
5 in stdenv.mkDerivation rec {
6 pname = "networkmanager_dmenu";
9 src = fetchFromGitHub {
11 repo = "networkmanager-dmenu";
13 sha256 = "sha256-btwiKxmb1xDtPSTOIvpHJDQ5SY1gnBWlKnYOzzSLDEY=";
16 buildInputs = [ glib python pygobject3 gobject-introspection networkmanager python3Packages.wrapPython ];
21 mkdir -p $out/bin $out/share/applications $out/share/doc/$pname
22 cp networkmanager_dmenu $out/bin/
23 cp networkmanager_dmenu.desktop $out/share/applications
24 cp README.md $out/share/doc/$pname/
25 cp config.ini.example $out/share/doc/$pname/
30 --prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH \
31 --prefix PYTHONPATH : \"$(toPythonPath $out):$(toPythonPath ${pygobject3})\""
37 description = "Small script to manage NetworkManager connections with dmenu instead of nm-applet";
38 homepage = "https://github.com/firecat53/networkmanager-dmenu";
39 license = lib.licenses.mit;
40 maintainers = [ lib.maintainers.jensbin ];
41 platforms = lib.platforms.all;