Add missing deps for linux
This commit is contained in:
parent
0b23e4e5b7
commit
e727346ccc
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, curl, tzdata, autoPatchelfHook, fixDarwinDylibNames
|
{ stdenv, fetchurl, curl, tzdata, autoPatchelfHook, fixDarwinDylibNames, libxml2
|
||||||
, version, hashes }:
|
, version, hashes }:
|
||||||
with stdenv;
|
with stdenv;
|
||||||
let
|
let
|
||||||
|
@ -18,15 +18,15 @@ in mkDerivation {
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ fixDarwinDylibNames autoPatchelfHook ];
|
nativeBuildInputs = [ fixDarwinDylibNames autoPatchelfHook ];
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libxml2 stdenv.cc.cc ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ curl tzdata ];
|
propagatedBuildInputs = [ curl tzdata ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
|
||||||
mv bin etc import lib LICENSE README $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; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue