gnome.gnome-nettool: 3.8.1 → 42.0
https://gitlab.gnome.org/GNOME/gnome-nettool/-/compare/gnome-nettool-3-8-1...gnome-nettool-42-0
This commit is contained in:
parent
b6966d911d
commit
57739be66c
1 changed files with 62 additions and 12 deletions
|
@ -1,28 +1,78 @@
|
||||||
{ lib, stdenv, fetchurl, pkg-config, gnome, gtk3, wrapGAppsHook
|
{ stdenv
|
||||||
, libgtop, intltool, itstool, libxml2, nmap, inetutils }:
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
|
, desktop-file-utils
|
||||||
|
, itstool
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, python3
|
||||||
|
, wrapGAppsHook
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, libgtop
|
||||||
|
, dnsutils
|
||||||
|
, iputils
|
||||||
|
, nmap
|
||||||
|
, inetutils
|
||||||
|
, gnome
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-nettool";
|
pname = "gnome-nettool";
|
||||||
version = "3.8.1";
|
version = "42.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1c9cvzvyqgfwa5zzyvp7118pkclji62fkbb33g4y9sp5kw6m397h";
|
sha256 = "pU8p7vIDiu5pVRyLGcpPdY5eueIJCkvGtWM9/wGIdR8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
patches = [
|
||||||
buildInputs = [
|
# Fix build with meson 0.61
|
||||||
gtk3 wrapGAppsHook libgtop intltool itstool libxml2
|
# https://gitlab.gnome.org/GNOME/gnome-nettool/-/merge_requests/3
|
||||||
gnome.adwaita-icon-theme
|
(fetchpatch {
|
||||||
|
url = "https://gitlab.gnome.org/GNOME/gnome-nettool/-/commit/1124c3e1fdb8472d30b7636500229aa16cdc1244.patch";
|
||||||
|
sha256 = "fbpfL8Xb1GsadpQzAdmu8FSPs++bsGCVdcwnzQWttGY=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [ nmap inetutils ];
|
nativeBuildInputs = [
|
||||||
|
desktop-file-utils
|
||||||
|
itstool
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
python3
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
libgtop
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
chmod +x postinstall.py
|
||||||
|
patchShebangs postinstall.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--prefix PATH : "${lib.makeBinPath [
|
||||||
|
dnsutils # for dig
|
||||||
|
iputils # for ping
|
||||||
|
nmap # for nmap
|
||||||
|
inetutils # for ping6, traceroute, whois
|
||||||
|
]}"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = gnome.updateScript {
|
updateScript = gnome.updateScript {
|
||||||
packageName = pname;
|
packageName = pname;
|
||||||
attrPath = "gnome.${pname}";
|
attrPath = "gnome.${pname}";
|
||||||
versionPolicy = "none";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,7 +80,7 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://gitlab.gnome.org/GNOME/gnome-nettool";
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-nettool";
|
||||||
description = "A collection of networking tools";
|
description = "A collection of networking tools";
|
||||||
maintainers = teams.gnome.members;
|
maintainers = teams.gnome.members;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue