Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: ethtool 0 -> 1
attrpath: ethtool
Checking auto update branch...
[version]
[version] skipping because derivation has updateScript
[rustCrateVersion]
[rustCrateVersion] No cargoHash found
[golangModuleVersion]
[golangModuleVersion] Not a buildGoModule package with vendorHash
[npmDepsVersion]
[npmDepsVersion] No npmDepsHash
[updateScript]
[updateScript] Success
[updateScript] these 2 derivations will be built:
/nix/store/d6w6dhgvmk0g09vhdmgry6s2jy2rqhvw-update-ethtool.drv
/nix/store/9rincx0gn8zmf1cla6zwy6i4zy92avsk-packages.json.drv
building '/nix/store/d6w6dhgvmk0g09vhdmgry6s2jy2rqhvw-update-ethtool.drv'...
building '/nix/store/9rincx0gn8zmf1cla6zwy6i4zy92avsk-packages.json.drv'...
Going to be running update for following packages:
- ethtool-7.0
Press Enter key to continue...
Running update for:
Enqueuing group of 1 packages
- ethtool-7.0: UPDATING ...
- ethtool-7.0: DONE.
Packages updated!
Diff after rewrites:
diff --git a/pkgs/by-name/et/ethtool/package.nix b/pkgs/by-name/et/ethtool/package.nix
index bd0c1320e711..5c3e2421f418 100644
--- a/pkgs/by-name/et/ethtool/package.nix
+++ b/pkgs/by-name/et/ethtool/package.nix
@@ -9,11 +9,11 @@
stdenv.mkDerivation (finalAttrs: {
pname = "ethtool";
- version = "7.0";
+ version = "7.1";
src = fetchurl {
url = "mirror://kernel/software/network/ethtool/ethtool-${finalAttrs.version}.tar.xz";
- hash = "sha256-Zgv5clp4cTQ6DSMgaKdjT7z7abbC+O/0VYJ/rvsM0WI=";
+ hash = "sha256-TXjCbtwCVbyS9LmVtf1mEI11/5Zu1GlPYCWm03C8JJY=";
};
nativeBuildInputs = [
No auto update branch exists
Old version 7.0" not present in staging derivation file with contents: {
lib,
stdenv,
fetchurl,
libmnl,
pkg-config,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ethtool";
version = "7.1";
src = fetchurl {
url = "mirror://kernel/software/network/ethtool/ethtool-${finalAttrs.version}.tar.xz";
hash = "sha256-TXjCbtwCVbyS9LmVtf1mEI11/5Zu1GlPYCWm03C8JJY=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libmnl
];
enableParallelBuilding = true;
passthru = {
updateScript = writeScript "update-ethtool" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre2 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/ |
pcre2grep -o1 '' |
head -n1)"
update-source-version ethtool "$new_version"
'';
};
meta = {
description = "Utility for controlling network drivers and hardware";
homepage = "https://www.kernel.org/pub/software/network/ethtool/";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ bjornfor ];
mainProgram = "ethtool";
};
})