summary refs log tree commit diff
path: root/pkgs/development/libraries/libnatspec
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2013-01-18 17:01:56 -0500
committerShea Levy <shea@shealevy.com>2013-01-18 17:01:56 -0500
commit23853fa81b86517a8a5705b77d4c816b42c917e6 (patch)
tree268ac1c49029a56a2d9919b0e3604f5295955caa /pkgs/development/libraries/libnatspec
parent7e8fc622e5e0b7887d43d9885da289531d34ed0d (diff)
downloadnixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.tar
nixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.tar.gz
nixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.tar.bz2
nixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.tar.lz
nixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.tar.xz
nixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.tar.zst
nixpkgs-23853fa81b86517a8a5705b77d4c816b42c917e6.zip
libnatspec: The build process doesn't respect buildInputs, so force use of libiconv on not-Linux
Diffstat (limited to 'pkgs/development/libraries/libnatspec')
-rw-r--r--pkgs/development/libraries/libnatspec/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/libraries/libnatspec/default.nix b/pkgs/development/libraries/libnatspec/default.nix
index d2747b50ce0..985745c3898 100644
--- a/pkgs/development/libraries/libnatspec/default.nix
+++ b/pkgs/development/libraries/libnatspec/default.nix
@@ -1,6 +1,6 @@
-{ stdenv, fetchurl, popt, libiconvOrEmpty }:
+{ stdenv, fetchurl, popt, libiconv }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (rec {
   name = "libnatspec-0.2.6";
 
   src = fetchurl {
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
     sha256 = "0zvm9afh1skxgdv62ylrpwyykpjhhskxj0zv7yrdf7jhfdriz0y3";
   };
 
-  buildInputs = [ popt ] ++ libiconvOrEmpty;
+  buildInputs = [ popt ];
 
   meta = {
     homepage = http://natspec.sourceforge.net/ ;
@@ -16,4 +16,8 @@ stdenv.mkDerivation rec {
     platforms = stdenv.lib.platforms.unix;
     maintainers = [ stdenv.lib.maintainers.urkud ];
   };
-}
+} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
+  NIX_CFLAGS_COMPILE = "-I${libiconv}/include";
+
+  NIX_CFLAGS_LINK = "-L${libiconv}/lib -liconv";
+})