From f8204cc7518cab5b5c219afdb27015c826710a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 5 Mar 2021 02:27:20 +0100 Subject: [PATCH] gti: fix cross compile --- pkgs/tools/misc/gti/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/gti/default.nix b/pkgs/tools/misc/gti/default.nix index 83452394f15..e950d58fc76 100644 --- a/pkgs/tools/misc/gti/default.nix +++ b/pkgs/tools/misc/gti/default.nix @@ -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 ];