1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

Merge pull request #261096 from materusPL/materus/dmd-druntime-import

dmd: Fix druntime imports
This commit is contained in:
Weijia Wang 2023-10-15 00:42:14 +02:00 committed by GitHub
commit de8d828e0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,6 +155,7 @@ stdenv.mkDerivation rec {
fi
${dmd_bin}/rdmd dmd/compiler/src/build.d -j$buildJobs HOST_DMD=${dmd_bin}/dmd $buildFlags
make -C dmd/druntime -f posix.mak DMD=${pathToDmd} $buildFlags -j$buildJobs
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
echo ${lib.getLib curl}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary} > LibcurlPathFile
make -C phobos -f posix.mak $buildFlags -j$buildJobs DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$PWD"
@ -195,7 +196,7 @@ stdenv.mkDerivation rec {
installManPage dmd/docs/man/man*/*
mkdir -p $out/include/dmd
cp -r {druntime/import/*,phobos/{std,etc}} $out/include/dmd/
cp -r {dmd/druntime/import/*,phobos/{std,etc}} $out/include/dmd/
mkdir $out/lib
cp phobos/generated/${osname}/release/${bits}/libphobos2.* $out/lib/