Skip to content

Commit

Permalink
Temp fix for oxalica#59
Browse files Browse the repository at this point in the history
  • Loading branch information
abbec committed Nov 23, 2021
1 parent 885ef5b commit 84e80ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ let

# Ourselves have offset -1. In order to make these offset -1 dependencies of downstream derivation,
# they are offset 0 propagated.
propagatedBuildInputs =
propagatedNativeBuildInputs =
optional (pname == "rustc") [ self.stdenv.cc self.buildPackages.stdenv.cc ];
# This goes downstream packages' buildInputs.
depsTargetTargetPropagated =
Expand Down Expand Up @@ -246,12 +246,12 @@ let
# Handle executables
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${makeLibraryPath [ self.zlib ]}:$out/lib" \
--set-rpath "${makeLibraryPath [ self.zlib self.glibc ]}:$out/lib" \
"$i" || true
else
# Handle libraries
patchelf \
--set-rpath "${makeLibraryPath [ self.zlib ]}:$out/lib" \
--set-rpath "${makeLibraryPath [ self.zlib self.glibc ]}:$out/lib" \
"$i" || true
fi
done < <(find "$dir" -type f -print0)
Expand Down

0 comments on commit 84e80ab

Please sign in to comment.