From b43d1c014ae676af24c045495baff960af926cc4 Mon Sep 17 00:00:00 2001 From: "Jason \\\"Don\\\" O'Conal" Date: Sun, 14 Jul 2013 07:30:18 +1000 Subject: [PATCH] sdcv: fix build on darwin (close #744) * add -lintl flag to NIX_CFLAGS_COMPILE --- pkgs/applications/misc/sdcv/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/sdcv/default.nix b/pkgs/applications/misc/sdcv/default.nix index 8ac4730de9a7..3859d2c82abd 100644 --- a/pkgs/applications/misc/sdcv/default.nix +++ b/pkgs/applications/misc/sdcv/default.nix @@ -26,6 +26,7 @@ stdenv.mkDerivation rec { sed -i 's/guint32 page_size/size_t page_size/' src/lib/lib.cpp ''; - NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__"; + NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__" + + stdenv.lib.optionalString stdenv.isDarwin " -lintl"; }