about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-10-19 00:02:21 +0000
committerGitHub <noreply@github.com>2023-10-19 00:02:21 +0000
commit4b9cf6ff6eebded20718a58eeb06fbdda16b2521 (patch)
tree4f2c1bb17be3df919fdf53e0134b378819f1c0b5 /pkgs/development/compilers
parentd8653dfb4c86329abf022f5c41d935689d7818e3 (diff)
parent1ae1ab8d01d53806bfaf96beddd86776d9cd205e (diff)
downloadnixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.tar
nixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.tar.gz
nixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.tar.bz2
nixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.tar.lz
nixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.tar.xz
nixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.tar.zst
nixlib-4b9cf6ff6eebded20718a58eeb06fbdda16b2521.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/dmd/generic.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/compilers/dmd/generic.nix b/pkgs/development/compilers/dmd/generic.nix
index fb79aa77420d..0f6abb574a59 100644
--- a/pkgs/development/compilers/dmd/generic.nix
+++ b/pkgs/development/compilers/dmd/generic.nix
@@ -6,6 +6,7 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, removeReferencesTo
 , makeWrapper
 , which
 , writeTextFile
@@ -20,7 +21,8 @@
 , installShellFiles
 , git
 , unzip
-, dmd_bin ? "${callPackage ./bootstrap.nix { }}/bin"
+, dmdBootstrap ? callPackage ./bootstrap.nix { }
+, dmd_bin ? "${dmdBootstrap}/bin"
 }:
 
 let
@@ -210,6 +212,12 @@ stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
+  preFixup = ''
+    find $out/bin -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${dmd_bin}/dmd '{}' +
+  '';
+
+  disallowedReferences = [ dmdBootstrap ];
+
   meta = with lib; {
     description = "Official reference compiler for the D language";
     homepage = "https://dlang.org/";