2020-01-17 01:24:34 +01:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2019-10-16 15:36:12 +02:00
|
|
|
|
|
|
|
{ stdenvNoCC, depot }:
|
|
|
|
|
|
|
|
let stdenv = stdenvNoCC;
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "libc";
|
|
|
|
version = "12.0.0";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -r ${depot.libc} $out
|
|
|
|
mkdir -p $dev/lib/pkgconfig
|
|
|
|
substituteAll ${./libc.pc} libc.pc
|
|
|
|
substituteAll ${./libm.pc} libm.pc
|
|
|
|
install -Dt $dev/lib/pkgconfig *.pc
|
|
|
|
'';
|
|
|
|
}
|