mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
64 lines
1.0 KiB
Nix
64 lines
1.0 KiB
Nix
{ 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.2";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GabMus";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-gt/NKgnCpRoVmLvEJJq2geng4miM2g+YhXYEOm5pPTA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|