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