mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
atinout: fix darwin build
This commit is contained in:
parent
6c0058f47f
commit
4db951e4e1
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue