Add missing deps for linux

This commit is contained in:
Lionello Lunesu 2020-04-19 21:44:06 +08:00
parent 0b23e4e5b7
commit e727346ccc

View File

@ -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; {