aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix-overlays/dmd/generic.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix-overlays/dmd/generic.nix')
-rw-r--r--nix-overlays/dmd/generic.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/nix-overlays/dmd/generic.nix b/nix-overlays/dmd/generic.nix
index 59a781e..bfe24b4 100644
--- a/nix-overlays/dmd/generic.nix
+++ b/nix-overlays/dmd/generic.nix
@@ -15,7 +15,6 @@
curl,
tzdata,
gdb,
- # Foundation,
callPackage,
targetPackages,
fetchpatch,
@@ -32,14 +31,15 @@ let
name = "dmd.conf";
text = (lib.generators.toINI { } {
Environment = {
- DFLAGS = ''-I@out@/include/dmd -L-L@out@/lib -fPIC ${lib.optionalString (!targetPackages.stdenv.cc.isClang) "-L--export-dynamic"}'';
+ DFLAGS = ''-I@out@/include/dmd -L-L@out@/lib -fPIC ${
+ lib.optionalString (!targetPackages.stdenv.cc.isClang) "-L--export-dynamic"
+ }'';
};
});
};
- bits = builtins.toString stdenv.hostPlatform.parsed.cpu.bits;
- osname = if stdenv.hostPlatform.isDarwin then "osx"
- else stdenv.hostPlatform.parsed.kernel.name;
+ bits = toString stdenv.hostPlatform.parsed.cpu.bits;
+ osname = if stdenv.hostPlatform.isDarwin then "osx" else stdenv.hostPlatform.parsed.kernel.name;
pathToDmd = "\${NIX_BUILD_TOP}/dmd/generated/${osname}/release/${bits}/dmd";
in
@@ -96,9 +96,6 @@ stdenv.mkDerivation (finalAttrs: {
rm dmd/compiler/test/runnable/gdb4149.d
rm dmd/compiler/test/runnable/gdb4181.d
rm dmd/compiler/test/compilable/ddocYear.d
- rm dmd/compiler/test/compilable/sarif_success_test.d
- rm dmd/compiler/test/fail_compilation/sarif_test.d
- rm dmd/compiler/test/fail_compilation/sarifmultiple_test.d
# Disable tests that rely on objdump whitespace until fixed upstream:
# https://issues.dlang.org/show_bug.cgi?id=23317
@@ -125,8 +122,6 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
curl
tzdata
- # ] ++ lib.optionals stdenv.hostPlatform.isDarwin []
- # Foundation
];
nativeCheckInputs = [
@@ -177,6 +172,7 @@ stdenv.mkDerivation (finalAttrs: {
NIX_ENFORCE_PURITY= \
make -C phobos unittest -j$checkJobs $checkFlags \
+ DISABLED_TESTS=std/datetime/timezone \
DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$PWD"
runHook postCheck
@@ -223,7 +219,10 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.boost;
mainProgram = "dmd";
maintainers = with maintainers; [ lionello dukc jtbx ];
- platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
+ platforms = [
+ "x86_64-linux"
+ "i686-linux"
+ ];
# ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '/private/tmp/nix-build-dmd-2.109.1.drv-0/.rdmd-301/rdmd-build.d-A1CF043A7D87C5E88A58F3C0EF5A0DF7/objs/build.o' for architecture x86_64
# clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;