Skip to content

Commit 658c883

Browse files
authored
systemd: Fix error: attribute 'version' missing on arm-embedded (#382110)
2 parents 1e64ae7 + cc6ec57 commit 658c883

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkgs/os-specific/linux/systemd/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@
120120
withLibBPF ?
121121
lib.versionAtLeast buildPackages.llvmPackages.clang.version "10.0"
122122
# assumes hard floats
123-
&& (stdenv.hostPlatform.isAarch -> lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6")
123+
&& (
124+
stdenv.hostPlatform.isAarch
125+
->
126+
stdenv.hostPlatform.parsed.cpu ? version
127+
&& lib.versionAtLeast stdenv.hostPlatform.parsed.cpu.version "6"
128+
)
124129
# see https://github.com/NixOS/nixpkgs/pull/194149#issuecomment-1266642211
125130
&& !stdenv.hostPlatform.isMips64
126131
# can't find gnu/stubs-32.h

0 commit comments

Comments
 (0)