diff options
author | Carlos D <carlos.dagostino@gmail.com> | 2018-08-03 12:36:24 +1000 |
---|---|---|
committer | Carlos D <carlos.dagostino@gmail.com> | 2018-08-03 12:36:24 +1000 |
commit | dc8aa01c91545c53431473039236dec0983aabd3 (patch) | |
tree | 9fcb0b708cf0a836bfae6800872807e6d57c9d3a /pkgs/tools/misc/tldr | |
parent | 687771ced6dffd4a8662a068908cf4c78e3c264a (diff) |
tldr: add support for darwin
Diffstat (limited to 'pkgs/tools/misc/tldr')
-rw-r--r-- | pkgs/tools/misc/tldr/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/misc/tldr/default.nix b/pkgs/tools/misc/tldr/default.nix index bb03b9a809bf6..91dae68bebc84 100644 --- a/pkgs/tools/misc/tldr/default.nix +++ b/pkgs/tools/misc/tldr/default.nix @@ -14,6 +14,11 @@ stdenv.mkDerivation rec { buildInputs = [ curl clang libzip ]; nativeBuildInputs = [ pkgconfig ]; + preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile --replace "gcc" "$CC" + substituteInPlace Makefile --replace "gcc" "$CC" + ''; + installFlags = [ "PREFIX=$(out)" ]; meta = with stdenv.lib; { @@ -24,7 +29,7 @@ stdenv.mkDerivation rec { ''; homepage = http://tldr-pages.github.io; license = licenses.mit; - maintainers = with maintainers; [ taeer ]; - platforms = platforms.linux; + maintainers = with maintainers; [ taeer carlosdagos ]; + platforms = platforms.all; }; } |