tldr: add support for darwin

This commit is contained in:
Carlos D 2018-08-03 12:36:24 +10:00
parent 687771ced6
commit dc8aa01c91

View File

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
buildInputs = [ curl clang libzip ]; buildInputs = [ curl clang libzip ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile --replace "gcc" "$CC"
substituteInPlace Makefile --replace "gcc" "$CC"
'';
installFlags = [ "PREFIX=$(out)" ]; installFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
@ -24,7 +29,7 @@ stdenv.mkDerivation rec {
''; '';
homepage = http://tldr-pages.github.io; homepage = http://tldr-pages.github.io;
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ taeer ]; maintainers = with maintainers; [ taeer carlosdagos ];
platforms = platforms.linux; platforms = platforms.all;
}; };
} }