Merge pull request #111525 from lionello/dmd-bootstrap-rm-ref

dmd: remove references to dmd-bootstrap
This commit is contained in:
Weijia Wang 2023-10-18 22:11:01 +02:00 committed by GitHub
commit 9c7a70fc30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/";