diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/gti')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/gti/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/gti/default.nix b/nixpkgs/pkgs/tools/misc/gti/default.nix new file mode 100644 index 000000000000..21089caf0236 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/gti/default.nix @@ -0,0 +1,31 @@ +{ 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; + }; +} |