Skip to content

Instantly share code, notes, and snippets.

@Mic92
Last active March 20, 2018 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/ae6b9d538dc03598154f846f03dad1ef to your computer and use it in GitHub Desktop.
Save Mic92/ae6b9d538dc03598154f846f03dad1ef to your computer and use it in GitHub Desktop.
musl with musl-gcc/musl-clang wrapper
(musl.overrideAttrs (old: {
configureFlags = (old.configureFlags or []) ++ ["--enable-wrapper=all"];
preFixup = (old.preFixup or "") + ''
for i in bin/{musl-gcc,musl-clang,ld.musl-clang}; do
moveToOutput $i $dev
done
moveToOutput lib/musl-gcc.specs $dev
substituteInPlace $dev/bin/musl-gcc \
--replace $out/lib/musl-gcc.specs $dev/lib/musl-gcc.specs
'';
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment