atinout: fix darwin build
This commit is contained in:
parent
6c0058f47f
commit
4db951e4e1
@ -4,8 +4,8 @@ stdenv.mkDerivation rec {
|
|||||||
name = "atinout-${version}";
|
name = "atinout-${version}";
|
||||||
version = "0.9.2-alpha";
|
version = "0.9.2-alpha";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Werror=implicit-fallthrough=0";
|
NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0";
|
||||||
LANG = "C.UTF-8";
|
LANG = if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8";
|
||||||
nativeBuildInputs = [ ronn mount ];
|
nativeBuildInputs = [ ronn mount ];
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0bninv2bklz7ly140cxx8iyaqjlq809jjx6xqpimn34ghwsaxbpv";
|
sha256 = "0bninv2bklz7ly140cxx8iyaqjlq809jjx6xqpimn34ghwsaxbpv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make PREFIX=$out install
|
make PREFIX=$out install
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user