mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
net-tools: enable strictDeps, enable structuredAttrs, modernize (#551975)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user