mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
unrtf: fix darwin build
unrtf needs libiconv on Darwin. Linux has issues with the -liconv flag, but it's provided by gcc anyway.
This commit is contained in:
parent
cf69e6d870
commit
a6faa04ee4
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, autoconf, automake }:
|
||||
{ stdenv, fetchurl, autoconf, automake, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "unrtf-${version}";
|
||||
@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ autoconf automake ];
|
||||
|
||||
buildInputs = [ ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
|
||||
|
||||
preConfigure = "./bootstrap";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
Loading…
Reference in New Issue
Block a user