diff options
Diffstat (limited to '')
| -rw-r--r-- | pkgs/xfconnect-indicator/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/xfconnect-indicator/default.nix b/pkgs/xfconnect-indicator/default.nix new file mode 100644 index 0000000..f7f4262 --- /dev/null +++ b/pkgs/xfconnect-indicator/default.nix @@ -0,0 +1,45 @@ +{ + fetchFromGitHub, + gobject-introspection, + gtk3, + lib, + libappindicator-gtk3, + python3, + stdenv, + wrapGAppsHook3, +}: +stdenv.mkDerivation { + pname = "xfconnect-indicator"; + version = "0+master"; + + src = fetchFromGitHub { + repo = "xfconnect-indicator"; + owner = "juanramoncastan"; + + rev = "3e7a372042d00cba39684809f846a1c4317980b7"; + hash = "sha256-kLZQ1LTlxgtCbghpRjnCMjegUAJ2mn9NJ3toERKVSZM="; + }; + + buildInputs = [ + gobject-introspection + gtk3 + libappindicator-gtk3 + (python3.withPackages (py: [py.dbus-python py.pygobject3])) + ]; + + nativeBuildInputs = [ + wrapGAppsHook3 + ]; + + buildPhase = '' + mkdir -p $out/bin + cp -r source/share $out + cp source/bin/xfconnect-indicator.py $out/bin/xfconnect-indicator + chmod +x $out/bin/xfconnect-indicator + ''; + + meta = { + license = lib.licenses.gpl3; + mainProgram = "xfconnect-indicator"; + }; +} |
