diff --git a/pkgs/tools/networking/whatip/default.nix b/pkgs/tools/networking/whatip/default.nix new file mode 100644 index 000000000000..c3e5a29f6049 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 849558a2a8e3..848d3b7e434a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12316,6 +12316,8 @@ with pkgs; wf-recorder = callPackage ../applications/video/wf-recorder { }; + whatip = callPackage ../tools/networking/whatip {}; + whatweb = callPackage ../tools/security/whatweb { }; whipper = callPackage ../applications/audio/whipper { };