systemd: Fix error: attribute 'version' missing on arm-embedded (#382110)

This commit is contained in:
Artturin
2025-02-20 21:37:32 +02:00
committed by GitHub
+6 -1
View File
@@ -120,7 +120,12 @@
withLibBPF ?
lib.versionAtLeast buildPackages.llvmPackages.clang.version "10.0"
# assumes hard floats
&& (stdenv.hostPlatform.isAarch -> lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6")
&& (
stdenv.hostPlatform.isAarch
->
stdenv.hostPlatform.parsed.cpu ? version
&& lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6"
)
# see https://github.com/NixOS/nixpkgs/pull/194149#issuecomment-1266642211
&& !stdenv.hostPlatform.isMips64
# can't find gnu/stubs-32.h