We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4657eb4 commit 51dd50eCopy full SHA for 51dd50e
1 file changed
pkgs/development/libraries/libiconv/default.nix
@@ -2,6 +2,7 @@
2
fetchurl,
3
stdenv,
4
lib,
5
+ darwin,
6
updateAutotoolsGnuConfigScriptsHook,
7
enableStatic ? stdenv.hostPlatform.isStatic,
8
enableShared ? !stdenv.hostPlatform.isStatic,
@@ -10,7 +11,12 @@
10
11
12
# assert !stdenv.hostPlatform.isLinux || stdenv.hostPlatform != stdenv.buildPlatform; # TODO: improve on cross
13
-stdenv.mkDerivation rec {
14
+let
15
+ # libiconv is propagated by the SDK in the stdenv. Avoid an infinite recursion by using a stdenv
16
+ # with an SDK that does not try to propagate it.
17
+ stdenv' = if stdenv.hostPlatform.isDarwin then darwin.bootstrapStdenv else stdenv;
18
+in
19
+stdenv'.mkDerivation rec {
20
pname = "libiconv";
21
version = "1.18";
22
0 commit comments