atinout: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-11 22:44:54 +02:00 committed by Jonathan Ringer
parent 6c0058f47f
commit 4db951e4e1

View file

@ -4,8 +4,8 @@ stdenv.mkDerivation rec {
name = "atinout-${version}";
version = "0.9.2-alpha";
NIX_CFLAGS_COMPILE = "-Werror=implicit-fallthrough=0";
LANG = "C.UTF-8";
NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0";
LANG = if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8";
nativeBuildInputs = [ ronn mount ];
src = fetchgit {
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
sha256 = "0bninv2bklz7ly140cxx8iyaqjlq809jjx6xqpimn34ghwsaxbpv";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''
make PREFIX=$out install
'';