1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

tldr: override makeFlags to set CC

This commit is contained in:
Jörg Thalheim 2018-08-03 05:43:43 +01:00
parent dc8aa01c91
commit ed5531383e

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, clang, curl, libzip, pkgconfig }:
{ stdenv, fetchFromGitHub, curl, libzip, pkgconfig }:
stdenv.mkDerivation rec {
name = "tldr-${version}";
@ -11,13 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
};
buildInputs = [ curl clang libzip ];
buildInputs = [ curl libzip ];
nativeBuildInputs = [ pkgconfig ];
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile --replace "gcc" "$CC"
substituteInPlace Makefile --replace "gcc" "$CC"
'';
makeFlags = ["CC=cc" "LD=cc" "CFLAGS="];
installFlags = [ "PREFIX=$(out)" ];