Skip to content

Commit

Permalink
moreutils: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jun 20, 2017
1 parent 613dd68 commit 14a320a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/misc/moreutils/default.nix
Expand Up @@ -19,6 +19,7 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [ perl IPCRun TimeDate TimeDuration ];

buildFlags = optionalString stdenv.isDarwin "CC=clang";
installFlags = "PREFIX=$(out)";

postInstall = "wrapProgram $out/bin/chronic --prefix PERL5LIB : $PERL5LIB";
Expand Down

2 comments on commit 14a320a

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more common measure we use is to do CC=cc, which works for all platforms

@domenkozar
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll fix that

Please sign in to comment.