1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/os-specific/linux/musl/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "musl-${version}";
version = "1.1.18";
src = fetchurl {
url = "http://www.musl-libc.org/releases/${name}.tar.gz";
sha256 = "0651lnj5spckqjf83nz116s8qhhydgqdy3rkl4icbh5f05fyw5yh";
};
enableParallelBuilding = true;
2015-03-26 20:04:27 +00:00
# Disable auto-adding stack protector flags,
# so musl can selectively disable as needed
hardeningDisable = [ "stackprotector" ];
preConfigure = ''
configureFlagsArray+=("--syslibdir=$out/lib")
'';
2015-03-26 20:04:27 +00:00
configureFlags = [
"--enable-shared"
"--enable-static"
"CFLAGS=-fstack-protector-strong"
2018-01-04 16:30:56 +00:00
# Fix cycle between outputs
"--disable-wrapper"
];
2018-01-04 16:30:56 +00:00
outputs = [ "out" "dev" ];
2015-03-26 20:04:27 +00:00
dontDisableStatic = true;
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 ];
};
}