4dc15c087a
NB: This currently doesn't add a working musl-wrapper around musl-gcc to allow it to work properly (musl has its own dynamic linker as well as libc too which must be accounted for). But at the moment it builds fine, and I plan on working more on it in the future. So lets get it integrated and building on Hydra. Signed-off-by: Austin Seipp <aseipp@pobox.com>
25 lines
689 B
Nix
25 lines
689 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "musl-${version}";
|
|
version = "1.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.musl-libc.org/releases/${name}.tar.gz";
|
|
sha256 = "0chs9h8k4d0iwv8w7n1w02nll3ypwqa2gag6r4czznkj55fz9mqs";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
configurePhase = ''
|
|
./configure --enable-shared --enable-static --prefix=$out --syslibdir=$out/lib
|
|
'';
|
|
|
|
meta = {
|
|
description = "An efficient, small, quality libc implementation";
|
|
homepage = "http://www.musl-libc.org";
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|