diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2022-03-22 18:59:05 +0100 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2022-03-23 21:37:39 +0100 |
commit | d2f268745a44dfd0ff23b5a00a75c1e13279bc3d (patch) | |
tree | 196dd1900cc1b4aa1a8ca4c822d9b07668c38ade /pkgs/development/compilers/ldc | |
parent | 48034046bf6271d44f7dea4c1ba97196b3b105a7 (diff) |
treewide: autoPatchelfHook only on Linux
Diffstat (limited to 'pkgs/development/compilers/ldc')
-rw-r--r-- | pkgs/development/compilers/ldc/binary.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ldc/binary.nix b/pkgs/development/compilers/ldc/binary.nix index 05928d396c861..dd4d51c81e3ab 100644 --- a/pkgs/development/compilers/ldc/binary.nix +++ b/pkgs/development/compilers/ldc/binary.nix @@ -18,8 +18,9 @@ in stdenv.mkDerivation { dontConfigure = true; dontBuild = true; - nativeBuildInputs = [ autoPatchelfHook ] - ++ lib.optional hostPlatform.isDarwin fixDarwinDylibNames; + nativeBuildInputs = lib.optionals hostPlatform.isLinux [ + autoPatchelfHook + ] ++ lib.optional hostPlatform.isDarwin fixDarwinDylibNames; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxml2 stdenv.cc.cc ]; |