From b2e76afa992fb4b42702287df652735ed934dc2e Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Fri, 8 Dec 2017 22:12:11 +0100 Subject: [PATCH] dmd, ldc, dub: Inherit buildInput and meta from build derivation --- pkgs/development/compilers/dmd/default.nix | 2 ++ pkgs/development/compilers/ldc/default.nix | 3 +++ pkgs/development/tools/build-managers/dub/default.nix | 3 +++ 3 files changed, 8 insertions(+) diff --git a/pkgs/development/compilers/dmd/default.nix b/pkgs/development/compilers/dmd/default.nix index d20d2a7e8ed9..875e60dd6dc5 100644 --- a/pkgs/development/compilers/dmd/default.nix +++ b/pkgs/development/compilers/dmd/default.nix @@ -278,10 +278,12 @@ stdenv.mkDerivation rec { inherit phobosUnittests; name = "dmd-${version}"; phases = "installPhase"; + buildInputs = dmdBuild.buildInputs; installPhase = '' mkdir $out cp -r --symbolic-link ${dmdBuild}/* $out/ ''; + meta = dmdBuild.meta; } diff --git a/pkgs/development/compilers/ldc/default.nix b/pkgs/development/compilers/ldc/default.nix index 154da0707f67..73d798bb66fd 100644 --- a/pkgs/development/compilers/ldc/default.nix +++ b/pkgs/development/compilers/ldc/default.nix @@ -249,10 +249,13 @@ stdenv.mkDerivation rec { inherit ldcUnittests; name = "ldc-${version}"; phases = "installPhase"; + buildInputs = ldcBuild.buildInputs; installPhase = '' mkdir $out cp -r --symbolic-link ${ldcBuild}/* $out/ ''; + + meta = ldcBuild.meta; } diff --git a/pkgs/development/tools/build-managers/dub/default.nix b/pkgs/development/tools/build-managers/dub/default.nix index 89996b3d30dc..15e801c1dffa 100644 --- a/pkgs/development/tools/build-managers/dub/default.nix +++ b/pkgs/development/tools/build-managers/dub/default.nix @@ -87,10 +87,13 @@ stdenv.mkDerivation rec { inherit dubUnittests; name = "dub-${dubBuild.version}"; phases = "installPhase"; + buildInputs = dubBuild.buildInputs; installPhase = '' mkdir $out cp -r --symbolic-link ${dubBuild}/* $out/ ''; + + meta = dubBuild.meta; }