diff --git a/pkgs/by-name/ut/util-linux/package.nix b/pkgs/by-name/ut/util-linux/package.nix index 6b5a028ca029..b71a6d6bfb03 100644 --- a/pkgs/by-name/ut/util-linux/package.nix +++ b/pkgs/by-name/ut/util-linux/package.nix @@ -48,7 +48,12 @@ stdenv.mkDerivation (finalAttrs: { }; patches = [ + # Search $PATH for the shutdown binary instead of hard-coding /sbin/shutdown, + # which isn't valid on NixOS (and a compatibility link on most other modern + # distros anyway). ./rtcwake-search-PATH-for-shutdown.patch + # bits: only build when cpu_set_t is available + # Otherwise, the build fails on macOS (fetchurl { name = "bits-only-build-when-cpu_set_t-is-available.patch"; url = "https://lore.kernel.org/util-linux/20250501075806.88759-1-hi@alyssa.is/raw";