diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-10-06 09:42:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 09:42:20 +0200 |
commit | cba026e8598bce927d484dd4d79b56a7efa2a8f8 (patch) | |
tree | e8443b4ebbb10818aa809388600a3da47928abb4 /pkgs/tools | |
parent | 716fddf4eb3a2841bf1f096d4b4fc11172fb0552 (diff) | |
parent | 208d98a79e23826babea1fb004195833d21ab4a3 (diff) |
Merge pull request #190733 from zendo/whatip
whatip: init at 1.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/networking/whatip/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/tools/networking/whatip/default.nix b/pkgs/tools/networking/whatip/default.nix new file mode 100644 index 0000000000000..c3e5a29f60491 --- /dev/null +++ b/pkgs/tools/networking/whatip/default.nix @@ -0,0 +1,63 @@ +{ lib +, fetchFromGitLab +, python3 +, meson +, ninja +, pkg-config +, glib +, gtk4 +, libadwaita +, librsvg +, blueprint-compiler +, gobject-introspection +, wrapGAppsHook4 +, appstream-glib +, desktop-file-utils +}: + +python3.pkgs.buildPythonApplication rec { + pname = "whatip"; + version = "1.1"; + + format = "other"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "GabMus"; + repo = pname; + rev = version; + hash = "sha256-ltimqdFTvvjXtvLC5jAdRaNX15i2Ww5mB3DIr4r9Yzg="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + blueprint-compiler + wrapGAppsHook4 + appstream-glib + desktop-file-utils + ]; + + buildInputs = [ + glib + gtk4 + librsvg + libadwaita + gobject-introspection + ]; + + propagatedBuildInputs = with python3.pkgs; [ + netaddr + requests + pygobject3 + ]; + + meta = with lib; { + description = "Info on your IP"; + homepage = "https://gitlab.gnome.org/GabMus/whatip"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ zendo ]; + }; +} |