ttyrec: fix build on Darwin (#27500)

* ttyrec: fix build on Darwin

* ttyrec: remove pointless empty list
This commit is contained in:
Patrick Callahan 2017-07-19 09:46:34 -07:00 committed by Jörg Thalheim
parent e1c57c4698
commit 010163d04d

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, buildPlatform }:
stdenv.mkDerivation rec {
name = "ttyrec-${version}";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
patches = [ ./clang-fixes.patch ];
makeFlags = [ "CFLAGS=-DSVR4" ]
makeFlags = stdenv.lib.optional buildPlatform.isLinux "CFLAGS=-DSVR4"
++ stdenv.lib.optional stdenv.cc.isClang "CC=clang";
installPhase = ''