atinout: fix darwin build

authored by Stéphan Kochen and committed by Jonathan Ringer 4db951e4 6c0058f4

+4 -2
+4 -2
pkgs/tools/networking/atinout/default.nix
··· 4 4 name = "atinout-${version}"; 5 5 version = "0.9.2-alpha"; 6 6 7 - NIX_CFLAGS_COMPILE = "-Werror=implicit-fallthrough=0"; 8 - LANG = "C.UTF-8"; 7 + NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0"; 8 + LANG = if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"; 9 9 nativeBuildInputs = [ ronn mount ]; 10 10 11 11 src = fetchgit { ··· 13 13 rev = "4976a6cb5237373b7e23cd02d7cd5517f306e3f6"; 14 14 sha256 = "0bninv2bklz7ly140cxx8iyaqjlq809jjx6xqpimn34ghwsaxbpv"; 15 15 }; 16 + 17 + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 16 18 17 19 installPhase = '' 18 20 make PREFIX=$out install