tldr: override makeFlags to set CC
This commit is contained in:
parent
dc8aa01c91
commit
ed5531383e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, clang, curl, libzip, pkgconfig }:
|
{ stdenv, fetchFromGitHub, curl, libzip, pkgconfig }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "tldr-${version}";
|
name = "tldr-${version}";
|
||||||
@ -11,13 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
|
sha256 = "10ylpiqc06p0qpma72vwksd7hd107s0vlx9c6s9rz4vc3i274lb6";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ curl clang libzip ];
|
buildInputs = [ curl libzip ];
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
makeFlags = ["CC=cc" "LD=cc" "CFLAGS="];
|
||||||
substituteInPlace Makefile --replace "gcc" "$CC"
|
|
||||||
substituteInPlace Makefile --replace "gcc" "$CC"
|
|
||||||
'';
|
|
||||||
|
|
||||||
installFlags = [ "PREFIX=$(out)" ];
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user