gti: fix cross compile

This commit is contained in:
Sandro Jäckel 2021-03-05 02:27:20 +01:00
parent c8cf293488
commit f8204cc751
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1jivnjswlhwjfg5v9nwfg3vfssvqbdxxf9znwmfb5dgfblg9wxw9";
};
postPatch = ''
substituteInPlace Makefile --replace 'CC=cc' 'CC=${stdenv.cc.targetPrefix}cc'
'';
installPhase = ''
mkdir -p $out/bin $out/share/man/man6
cp gti $out/bin
@ -18,7 +22,7 @@ stdenv.mkDerivation rec {
'';
meta = with lib; {
homepage = "http://r-wos.org/hacks/gti";
homepage = "https://r-wos.org/hacks/gti";
license = licenses.mit;
description = "Humorous typo-based git runner; drives a car over the terminal";
maintainers = with maintainers; [ fadenb ];