From 010163d04de8ebf6db119501eee844191c1dea77 Mon Sep 17 00:00:00 2001 From: Patrick Callahan Date: Wed, 19 Jul 2017 09:46:34 -0700 Subject: [PATCH] ttyrec: fix build on Darwin (#27500) * ttyrec: fix build on Darwin * ttyrec: remove pointless empty list --- pkgs/tools/misc/ttyrec/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/ttyrec/default.nix b/pkgs/tools/misc/ttyrec/default.nix index a836a2a0d0e..238d2d73d3b 100644 --- a/pkgs/tools/misc/ttyrec/default.nix +++ b/pkgs/tools/misc/ttyrec/default.nix @@ -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 = ''