diff options
author | Lionello Lunesu <lio+git@lunesu.com> | 2020-04-19 21:44:06 +0800 |
---|---|---|
committer | Lionello Lunesu <lio+git@lunesu.com> | 2020-04-19 21:44:06 +0800 |
commit | e727346ccc54c37b8d96fb1765d688e4e4d04189 (patch) | |
tree | 9bb371599074afcc7cdabeece1ae9c5143db1d2c /pkgs/development/compilers | |
parent | 0b23e4e5b7a066e3a34775e2a22057c1d1ec461e (diff) | |
download | nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.tar nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.tar.gz nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.tar.bz2 nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.tar.lz nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.tar.xz nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.tar.zst nixlib-e727346ccc54c37b8d96fb1765d688e4e4d04189.zip |
Add missing deps for linux
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/ldc/binary.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/compilers/ldc/binary.nix b/pkgs/development/compilers/ldc/binary.nix index 41a70662948e..56d40be86194 100644 --- a/pkgs/development/compilers/ldc/binary.nix +++ b/pkgs/development/compilers/ldc/binary.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, curl, tzdata, autoPatchelfHook, fixDarwinDylibNames +{ stdenv, fetchurl, curl, tzdata, autoPatchelfHook, fixDarwinDylibNames, libxml2 , version, hashes }: with stdenv; let @@ -18,15 +18,15 @@ in mkDerivation { dontBuild = true; nativeBuildInputs = [ fixDarwinDylibNames autoPatchelfHook ]; + + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxml2 stdenv.cc.cc ]; + propagatedBuildInputs = [ curl tzdata ]; installPhase = '' mkdir -p $out mv bin etc import lib LICENSE README $out/ - - # fix paths in ldc2.conf (one level less) - # substituteInPlace $out/bin/ldc2.conf --replace "/../../" "/../" ''; meta = with lib; { |