Skip to content

Commit

Permalink
adjust rust reference hack for newer nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
tpwrules committed Aug 25, 2023
1 parent ca4df04 commit a352cb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apple-silicon-support/packages/linux-asahi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,11 @@ let
removeReferencesTo
];
# HACK: references shouldn't have been there in the first place
# TODO: remove once 23.05 is obsolete
postFixup = (old.postFixup or "") + ''
remove-references-to -t $out $dev/lib/modules/${old.version}/build/vmlinux
if [ -f $dev/lib/modules/${old.version}/build/vmlinux ]; then
remove-references-to -t $out $dev/lib/modules/${old.version}/build/vmlinux
fi
remove-references-to -t $dev $out/Image
'';
RUST_LIB_SRC = rustPlatform.rustLibSrc;
Expand Down

0 comments on commit a352cb5

Please sign in to comment.