nixpkgs-suyu/pkgs/tools/misc/gti/default.nix
2022-04-15 23:17:40 +02:00

31 lines
757 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "gti";
version = "1.8.0";
src = fetchFromGitHub {
owner = "rwos";
repo = "gti";
rev = "v${version}";
sha256 = "sha256-x6ncvnZPPrVcQYwtwkSenW+ri0L6FpuDa7U7uYUqiyk=";
};
postPatch = ''
substituteInPlace Makefile --replace 'CC=cc' 'CC=${stdenv.cc.targetPrefix}cc'
'';
installPhase = ''
mkdir -p $out/bin $out/share/man/man6
cp gti $out/bin
cp gti.6 $out/share/man/man6
'';
meta = with lib; {
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 ];
platforms = platforms.unix;
};
}