75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
31 lines
758 B
Nix
31 lines
758 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gti";
|
|
version = "1.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rwos";
|
|
repo = "gti";
|
|
rev = "v${version}";
|
|
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
|
|
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;
|
|
};
|
|
}
|