ethtool 0 -> 1
attrpath: ethtool
Checking auto update branch...
[version]
[version] generic version rewriter does not support multiple hashes
[rustCrateVersion]
[rustCrateVersion] No cargoSha256 or cargoHash found
[golangModuleVersion]
[golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash
[npmDepsVersion]
[npmDepsVersion] No npmDepsHash
[updateScript]
[updateScript] Success
[updateScript] these 2 derivations will be built:
/nix/store/qdpwpkij3kn95ha1331mwpwig3j69vqw-update-ethtool.drv
/nix/store/kdqyxhyl29rg7k6nhsq916d7j5w23jg3-packages.json.drv
building '/nix/store/qdpwpkij3kn95ha1331mwpwig3j69vqw-update-ethtool.drv'...
building '/nix/store/kdqyxhyl29rg7k6nhsq916d7j5w23jg3-packages.json.drv'...
Going to be running update for following packages:
- ethtool-6.1
Press Enter key to continue...
Running update for:
- ethtool-6.1: UPDATING ...
- ethtool-6.1: DONE.
Packages updated!
Diff after rewrites:
diff --git a/pkgs/tools/misc/ethtool/default.nix b/pkgs/tools/misc/ethtool/default.nix
index eb1911170beb..b9f6ba2e4ea2 100644
--- a/pkgs/tools/misc/ethtool/default.nix
+++ b/pkgs/tools/misc/ethtool/default.nix
@@ -9,11 +9,11 @@
stdenv.mkDerivation rec {
pname = "ethtool";
- version = "6.1";
+ version = "6.7";
src = fetchurl {
url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
- sha256 = "sha256-xB/Igf+lpAQy0t2CnrRMZKSd7kgucWuqz5Jixk2qj5A=";
+ sha256 = "sha256-w65SawHOTY32x5SrFw3kpBBNER6o2Ns/H9fCX8uQVhk=";
};
patches = [
No auto update branch exists
Old version 6.1" not present in staging derivation file with contents: { lib
, stdenv
, fetchurl
, fetchpatch
, libmnl
, pkg-config
, writeScript
}:
stdenv.mkDerivation rec {
pname = "ethtool";
version = "6.7";
src = fetchurl {
url = "mirror://kernel/software/network/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-w65SawHOTY32x5SrFw3kpBBNER6o2Ns/H9fCX8uQVhk=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libmnl
];
passthru = {
updateScript = writeScript "update-ethtool" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre common-updater-scripts
set -eu -o pipefail
# Expect the text in format of '...'
# The page always lists versions newest to oldest. Pick the first one.
new_version="$(curl -s https://mirrors.edge.kernel.org/pub/software/network/ethtool/ |
pcregrep -o1 '' |
head -n1)"
update-source-version ${pname} "$new_version"
'';
};
meta = with lib; {
description = "Utility for controlling network drivers and hardware";
homepage = "https://www.kernel.org/pub/software/network/ethtool/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
mainProgram = "ethtool";
};
}