Merge pull request #197320 from figsoda/starfetch

starfetch: fix build on darwin
This commit is contained in:
Robert Scott 2022-10-23 20:37:20 +01:00 committed by GitHub
commit 16031f889c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
substituteInPlace src/starfetch.cpp --replace /usr/local/ $out/ substituteInPlace src/starfetch.cpp --replace /usr/local/ $out/
'' + lib.optionalString stdenv.cc.isClang ''
substituteInPlace makefile --replace g++ clang++
''; '';
installPhase = '' installPhase = ''