diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-08-27 18:06:18 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-08-28 10:42:56 -0400 |
| commit | 44f4c3fa1115f34b25af9d1518cde9de0e70c06c (patch) | |
| tree | 77e96cfefe7c11747a5d494ab38090fe0c5c04ed /org | |
| parent | run test-abstraction-ssp.sh update (diff) | |
dlang related nixpkgs overlay updates
- dmd 2.112.1
- ldc 1.43.0 beta1
- dub 1.41.0
- dtools 2.112.1
Diffstat (limited to 'org')
| -rw-r--r-- | org/nix-develop-dlang-shared.org | 84 | ||||
| -rw-r--r-- | org/nixpkgs_overlays_d_related.org | 113 |
2 files changed, 163 insertions, 34 deletions
diff --git a/org/nix-develop-dlang-shared.org b/org/nix-develop-dlang-shared.org index 53c8803..8b42fbb 100644 --- a/org/nix-develop-dlang-shared.org +++ b/org/nix-develop-dlang-shared.org @@ -5,6 +5,7 @@ #+AUTHOR: Ralph Amissah #+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]] #+COPYRIGHT: Copyright (C) 2015 (continuously updated, current 2026) Ralph Amissah +#+LICENSE: Boost Software License 1.0 #+LANGUAGE: en #+STARTUP: content hideblocks hidestars noindent entitiespretty #+PROPERTY: header-args+ :eval never-export :exports code @@ -331,20 +332,60 @@ sha256-/bs3bwgkLZF5IqaiKnc5gCF/r6MQBG/F1kWUkK8j2s0= #+NAME: dmd-version #+BEGIN_SRC org -<<dmd_version_2_111_0>> +<<dmd_version_2_112_1>> #+END_SRC #+NAME: dmd-hash #+BEGIN_SRC org -<<dmd_hash_2_111_0>> +<<dmd_hash_2_112_1>> #+END_SRC #+NAME: phobos-hash #+BEGIN_SRC org -<<phobos_hash_2_111_0>> +<<phobos_hash_2_112_1>> #+END_SRC *** versions +**** 2.112.1 OK ✓ + +- nix-prefetch-url --unpack https://github.com/dlang/dmd/archive/refs/tags/v2.112.1.tar.gz +- nix-prefetch-url --unpack https://github.com/dlang/phobos/archive/refs/tags/v2.112.1.tar.gz + +#+NAME: dmd_version_2_112_1 +#+BEGIN_SRC nix +2.112.1 +#+END_SRC + +#+NAME: phobos_hash_2_112_1 +#+BEGIN_SRC nix +sha256-CNvDSlerOXh6Qn060MNaSF1IIcbrcZzljyIxkm+TQQ0= +#+END_SRC + +#+NAME: dmd_hash_2_112_1 +#+BEGIN_SRC nix +sha256-UqNNUGoGmOV0lGNCGaFk8HbOE01qD55WuJ8NyQzqLJs= +#+END_SRC + +**** 2.112.0 OK ✓ + +- nix-prefetch-url --unpack https://github.com/dlang/dmd/archive/refs/tags/v2.112.0.tar.gz +- nix-prefetch-url --unpack https://github.com/dlang/phobos/archive/refs/tags/v2.112.0.tar.gz + +#+NAME: dmd_version_2_112_0 +#+BEGIN_SRC nix +2.112.0 +#+END_SRC + +#+NAME: phobos_hash_2_112_0 +#+BEGIN_SRC nix +sha256-rIW4fwSvwEt2rxYfXyaB82m3JWMgZLuYIMIkZ+kr0Sk= +#+END_SRC + +#+NAME: dmd_hash_2_112_0 +#+BEGIN_SRC nix +sha256-7MoLLAimtXs6t94VpWjhWGR1wBOISB4metbPcZYTb2M= +#+END_SRC + **** 2.111.0 OK ✓ - nix-prefetch-url --unpack https://github.com/dlang/dmd/archive/refs/tags/v2.111.0.tar.gz @@ -510,15 +551,30 @@ sha256-yRL9ub3u4mREG9PVxBvgQ/LDXD57RadPTZ2h08qyh/s= #+NAME: dub-version #+HEADER: :noweb yes #+BEGIN_SRC org -<<dub_version_1_40_0>> +<<dub_version_1_41_0>> #+END_SRC #+NAME: dub-hash #+BEGIN_SRC org -<<dub_hash_1_40_0>> +<<dub_hash_1_41_0>> #+END_SRC *** versions +**** 1.41 OK ✓ +***** 1.41.0 + +- nix-prefetch-url --unpack https://github.com/dlang/dub/archive/refs/tags/v1.41.0.tar.gz + +#+NAME: dub_version_1_41_0 +#+BEGIN_SRC nix +1.41.0 +#+END_SRC + +#+NAME: dub_hash_1_41_0 +#+BEGIN_SRC nix +sha256-86TzaRdu+CFM0Ld2fXxjaUUT9dl37MYPdmsvxE4ZUkE= +#+END_SRC + **** 1.40 OK ✓ ***** 1.40.0 @@ -661,15 +717,29 @@ sha256-5pW3Fu3PQ1ZLJnsuh7fPpEBNbVQgGfFyiuMrAVOJKQA= #+NAME: dtools-version #+BEGIN_SRC org -<<dtools_version_2_110_0>> +<<dtools_version_2_112_1>> #+END_SRC #+NAME: dtools-hash #+BEGIN_SRC org -<<dtools_hash_2_110_0>> +<<dtools_hash_2_112_1>> #+END_SRC *** versions +**** 2.112.1 OK ✓ + +- https://github.com/dlang/tools/releases/tag/v2.112.1 + +#+NAME: dtools_version_2_112_1 +#+BEGIN_SRC nix +2.112.1 +#+END_SRC + +#+NAME: dtools_hash_2_112_1 +#+BEGIN_SRC nix +sha256-WHgV33fu1YhRQCERVatqXKEqmfHlUvZ4IXhga/yOQ3w= +#+END_SRC + **** 2.110.0 OK ✓ - https://github.com/dlang/tools/releases/tag/v2.110.0 diff --git a/org/nixpkgs_overlays_d_related.org b/org/nixpkgs_overlays_d_related.org index d166bbf..fc89dd3 100644 --- a/org/nixpkgs_overlays_d_related.org +++ b/org/nixpkgs_overlays_d_related.org @@ -4,7 +4,7 @@ #+FILETAGS: :nixos:nixpkgs:dlang:compiler: #+AUTHOR: Ralph Amissah #+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]] -#+COPYRIGHT: Copyright (C) 2020 Ralph Amissah +#+COPYRIGHT: Copyright (C) 2015 (continuously updated, current 2026) Ralph Amissah #+LICENSE: Boost Software License 1.0 #+LANGUAGE: en #+STARTUP: content hideblocks hidestars noindent entitiespretty @@ -519,7 +519,6 @@ import ./package.nix lib, stdenv, fetchFromGitHub, - fetchpatch, callPackage, makeWrapper, removeReferencesTo, @@ -581,7 +580,14 @@ stdenv.mkDerivation (finalAttrs: { ''; nativeBuildInputs = [ - cmake ldcBootstrap lit lit.python <<ldc_llvm_set>>.dev makeWrapper ninja unzip + cmake + ldcBootstrap + lit + lit.python + <<ldc_llvm_set>>.dev + makeWrapper + ninja + unzip ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ # https://github.com/NixOS/nixpkgs/pull/36378#issuecomment-385034818 gdb @@ -655,8 +661,6 @@ stdenv.mkDerivation (finalAttrs: { find $out/bin -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${ldcBootstrap} '{}' + ''; - # doCheck = false; - disallowedReferences = [ ldcBootstrap ]; meta = with lib; { @@ -664,10 +668,21 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/ldc-developers/ldc"; changelog = "https://github.com/ldc-developers/ldc/releases/tag/v${finalAttrs.version}"; # from https://github.com/ldc-developers/ldc/blob/master/LICENSE - license = with licenses; [ bsd3 boost mit ncsa gpl2Plus ]; + license = with licenses; [ + bsd3 + boost + mit + ncsa + gpl2Plus + ]; mainProgram = "ldc2"; maintainers = with maintainers; [ lionello jtbx ]; - platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; + platforms = [ + "x86_64-linux" + "i686-linux" + "aarch64-linux" + "aarch64-darwin" + ]; }; passthru.ldcBootstrap = ldcBootstrap; @@ -699,7 +714,7 @@ stdenv.mkDerivation (finalAttrs: { # references to the compiler binaries. no-references-to-compiler = helloWorld.overrideAttrs { disallowedReferences = [ ldc ]; - dFlags = ["-g"]; + dFlags = [ "-g" ]; }; }; }) @@ -726,7 +741,7 @@ let inherit (stdenv) hostPlatform; OS = if hostPlatform.isDarwin then "osx" else hostPlatform.parsed.kernel.name; ARCH = if hostPlatform.isDarwin && hostPlatform.isAarch64 then "arm64" else hostPlatform.parsed.cpu.name; - <<ldc_bootstrap_1-41-0_hashes>> + <<ldc_bootstrap_1-42-0_hashes>> in stdenv.mkDerivation { pname = "ldc-bootstrap"; inherit version; @@ -758,14 +773,37 @@ in stdenv.mkDerivation { description = "LLVM-based D Compiler"; homepage = "https://github.com/ldc-developers/ldc"; # from https://github.com/ldc-developers/ldc/blob/master/LICENSE - license = with licenses; [ bsd3 boost mit ncsa gpl2Plus ]; + license = with licenses; [ + bsd3 + boost + mit + ncsa + gpl2Plus + ]; maintainers = with maintainers; [ lionello ]; - platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + "aarch64-darwin" + ]; }; } #+END_SRC ***** bootstrap.nix version SELECT +****** bootstrap.nix ldc2-1.42.0 + +#+NAME: ldc_bootstrap_1-42-0_hashes +#+BEGIN_SRC nix +version = "1.42.0"; +hashes = { + # Get these from `nix store prefetch-file https://github.com/ldc-developers/ldc/releases/download/v1.42.0/ldc2-1.41.0-osx-x86_64.tar.xz` etc.. + linux-x86_64 = "sha256-p7yclWE49VjK35yWI1L1nUHIDfbrOuP4A58lvhSmkwM="; + linux-aarch64 = "sha256-aHcHw+IP+RBSjrLZLyepjLCWAoTeOwJua/IChKwchRE="; + osx-arm64 = "sha256-emjiHFMFdmp09HNsyJGnlC23hCqSJmIyCVBLyFxwE4I="; +}; +#+END_SRC + ****** bootstrap.nix ldc2-1.41.0 #+NAME: ldc_bootstrap_1-41-0_hashes @@ -874,7 +912,6 @@ import ./generic.nix { curl, tzdata, gdb, - # Foundation, callPackage, targetPackages, fetchpatch, @@ -891,14 +928,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 @@ -955,9 +993,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 @@ -984,8 +1019,6 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ curl tzdata - # ] ++ lib.optionals stdenv.hostPlatform.isDarwin [] - # Foundation ]; nativeCheckInputs = [ @@ -1036,6 +1069,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 @@ -1082,7 +1116,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; @@ -1109,8 +1146,18 @@ callPackage ./binary.nix { #+HEADER: :tangle "../nix-overlays/dmd/binary.nix" #+BEGIN_SRC nix -{ lib, stdenv, fetchurl, curl, tzdata, autoPatchelfHook, fixDarwinDylibNames, glibc -, version, hashes }: +{ + lib, + stdenv, + fetchurl, + curl, + tzdata, + autoPatchelfHook, + fixDarwinDylibNames, + glibc, + version, + hashes, +}: let inherit (stdenv) hostPlatform; @@ -1183,7 +1230,10 @@ stdenv.mkDerivation { license = licenses.boost; maintainers = [ maintainers.lionello ]; homepage = "https://dlang.org/"; - platforms = [ "x86_64-darwin" "i686-linux" "x86_64-linux" ]; + platforms = [ + "i686-linux" + "x86_64-linux" + ]; }; } #+END_SRC @@ -1243,7 +1293,11 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs test ''; - nativeBuildInputs = [ dcompiler libevent rsync ]; + nativeBuildInputs = [ + dcompiler + libevent + rsync + ]; buildInputs = [ curl ]; preBuild = '' @@ -1303,7 +1357,12 @@ stdenv.mkDerivation (finalAttrs: { license = licenses.mit; mainProgram = "dub"; maintainers = with maintainers; [ jtbx ]; - platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; + platforms = [ + "x86_64-linux" + "i686-linux" + "aarch64-linux" + "aarch64-darwin" + ]; }; }) #+END_SRC |
