Skip to content

Commit 010163d

Browse files
therealpxcMic92
authored andcommittedJul 19, 2017
ttyrec: fix build on Darwin (#27500)
* ttyrec: fix build on Darwin * ttyrec: remove pointless empty list
1 parent e1c57c4 commit 010163d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pkgs/tools/misc/ttyrec/default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, fetchurl }:
1+
{ stdenv, fetchurl, buildPlatform }:
22

33
stdenv.mkDerivation rec {
44
name = "ttyrec-${version}";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111

1212
patches = [ ./clang-fixes.patch ];
1313

14-
makeFlags = [ "CFLAGS=-DSVR4" ]
14+
makeFlags = stdenv.lib.optional buildPlatform.isLinux "CFLAGS=-DSVR4"
1515
++ stdenv.lib.optional stdenv.cc.isClang "CC=clang";
1616

1717
installPhase = ''

0 commit comments

Comments
 (0)
Please sign in to comment.