net-tools: enable strictDeps, enable structuredAttrs, modernize (#551975)

This commit is contained in:
Stefan Frijters
2026-08-15 11:18:14 +00:00
committed by GitHub

View File

@@ -5,13 +5,13 @@
fetchpatch,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "net-tools";
version = "2.10";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-smJDWlJB6Jv6UcPKvVEzdTlS96e3uT8y4Iy52W9YDWk=";
url = "mirror://sourceforge/net-tools/net-tools-${finalAttrs.version}.tar.xz";
hash = "sha256-smJDWlJB6Jv6UcPKvVEzdTlS96e3uT8y4Iy52W9YDWk=";
};
patches = [
@@ -44,10 +44,14 @@ stdenv.mkDerivation rec {
"man"
];
strictDeps = true;
__structuredAttrs = true;
meta = {
homepage = "http://net-tools.sourceforge.net/";
description = "Set of tools for controlling the network subsystem in Linux";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
};
}
})