diff --git a/pkgs/by-name/ip/iplookup-gtk/package.nix b/pkgs/by-name/ip/iplookup-gtk/package.nix new file mode 100644 index 000000000000..3d2486fe5b98 --- /dev/null +++ b/pkgs/by-name/ip/iplookup-gtk/package.nix @@ -0,0 +1,58 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + meson, + ninja, + pkg-config, + gobject-introspection, + wrapGAppsHook4, + desktop-file-utils, + libadwaita, +}: + +python3Packages.buildPythonPackage rec { + pname = "iplookup-gtk"; + version = "0.3.4"; + pyproject = false; # Built with meson + + src = fetchFromGitHub { + owner = "Bytezz"; + repo = "IPLookup-gtk"; + rev = "v${version}"; + hash = "sha256-NqFE6vRdLpnlCzGAUE4iOfLmTnUgX3CHtoXfsbT3zm4="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + gobject-introspection + wrapGAppsHook4 + desktop-file-utils + ]; + + buildInputs = [ + libadwaita + ]; + + dependencies = with python3Packages; [ + pygobject3 + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = { + description = "Find info about an IP address"; + homepage = "https://github.com/Bytezz/IPLookup-gtk"; + changelog = "https://github.com/Bytezz/IPLookup-gtk/releases/tag/${src.rev}"; + license = lib.licenses.gpl3Plus; + mainProgram = "iplookup"; + maintainers = with lib.maintainers; [ aleksana ]; + platforms = lib.platforms.linux; + }; +}