You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to compile fine, but fails later with the following error:
error: builder for '/nix/store/bqhqfqfblrf2fpn5b7rfizsxyy5s0dig-util-linux-minimal-2.39.drv' failed to produce output path for output 'mount' at '/nix/store/l7qkhbbfxkiamfjzvvkgndmsga6wjxr6-util-linux-minimal-2.39-mount'
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
This isn't just affecting util-linuxMinimal, I also get it for util-linux:
error: builder for '/nix/store/ahnhcwziwkh47rf1d212l523lfl4ns3j-util-linux-2.39.drv' failed to produce output path for output 'mount' at '/nix/store/dl914ycgicna9b9nvkzsfg179iimhx8s-util-linux-2.39-mount'
configure: WARNING: non-linux system; not building mount
It seems like this results in a non-existent "mount" output, which presumably Nix does not like.
The following patch allows it to build on my system (aarch64-darwin). I can open a PR (or anyone can feel free) if this is reasonable (does it even make sense to have empty store paths as outputs?).
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
index bd87c07879c..8cd7dfe5619 100644
--- a/pkgs/os-specific/linux/util-linux/default.nix
+++ b/pkgs/os-specific/linux/util-linux/default.nix
@@ -111,6 +111,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
postInstall = ''
+ # builds on darwin do not produce all binaries
+ # so these outputs won't exist otherwise
+ mkdir -p "$mount"
+ mkdir -p "$swap"
+
moveToOutput bin/mount "$mount"
moveToOutput bin/umount "$mount"
ln -svf "$mount/bin/"* $bin/bin/
Activity
deejayem commentedon Jul 18, 2023
This isn't just affecting
util-linuxMinimal, I also get it forutil-linux:And it's not only aarch64:
nrhtr commentedon Jul 19, 2023
configure: WARNING: non-linux system; not building mountIt seems like this results in a non-existent "mount" output, which presumably Nix does not like.
The following patch allows it to build on my system (aarch64-darwin). I can open a PR (or anyone can feel free) if this is reasonable (does it even make sense to have empty store paths as outputs?).
amarshall commentedon Jul 19, 2023
Prospective fix in #244371
shyim commentedon Jul 23, 2023
Fixed in master