From 40316d7ea7a8c998412669311cb06cf4245d52c0 Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Mon, 24 Nov 2025 11:00:25 -0800 Subject: [PATCH] util-linux: only add updateScript for non-minimal build We choose the non-minimal build because minimal encompasses libuuid and util-linuxMinimal. --- pkgs/by-name/ut/util-linux/package.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ut/util-linux/package.nix b/pkgs/by-name/ut/util-linux/package.nix index 0751a15cfbc3..aef6ace7f00b 100644 --- a/pkgs/by-name/ut/util-linux/package.nix +++ b/pkgs/by-name/ut/util-linux/package.nix @@ -213,13 +213,6 @@ stdenv.mkDerivation (finalAttrs: { doCheck = false; # "For development purpose only. Don't execute on production system!" passthru = { - updateScript = gitUpdater { - # No nicer place to find latest release. - url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"; - rev-prefix = "v"; - ignoredVersions = "(-rc).*"; - }; - # encode upstream assumption to be used in man-db # https://github.com/util-linux/util-linux/commit/8886d84e25a457702b45194d69a47313f76dc6bc hasCol = stdenv.hostPlatform.libc == "glibc"; @@ -227,6 +220,14 @@ stdenv.mkDerivation (finalAttrs: { tests = { inherit (nixosTests) pam-lastlog; }; + } + // lib.optionalAttrs (!isMinimal) { + updateScript = gitUpdater { + # No nicer place to find latest release. + url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"; + rev-prefix = "v"; + ignoredVersions = "(-rc|-start|-devel).*"; + }; }; meta = {