Created
November 10, 2022 20:14
-
-
Save Mic92/17d7791fbfb2e525b29d530dc1965ce4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
let | |
clang-wrapped = wrapCCWith { | |
cc = llvmPackages.clang-unwrapped; | |
bintools = wrapBintoolsWith { | |
bintools = pkgs.runCommand "lld" {} '' | |
mkdir -p $out/bin | |
for i in ${llvmPackages.lld}/bin/*; do | |
ln -s $i $out/bin/$(basename $i) | |
done | |
ln -s $out/bin/ld.lld $out/bin/ld | |
''; | |
}; | |
}; | |
in (overrideCC stdenv clang-wrapped).mkDerivation { | |
name = "env"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment