nixpkgs/pkgs/tools/misc/gti/default.nix

32 lines
757 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2016-02-25 16:32:08 +00:00
stdenv.mkDerivation rec {
pname = "gti";
2022-04-15 21:17:40 +00:00
version = "1.8.0";
2016-02-25 16:32:08 +00:00
src = fetchFromGitHub {
owner = "rwos";
repo = "gti";
2017-08-12 09:05:14 +00:00
rev = "v${version}";
2022-04-15 21:17:40 +00:00
sha256 = "sha256-x6ncvnZPPrVcQYwtwkSenW+ri0L6FpuDa7U7uYUqiyk=";
2016-02-25 16:32:08 +00:00
};
2021-03-05 01:27:20 +00:00
postPatch = ''
substituteInPlace Makefile --replace 'CC=cc' 'CC=${stdenv.cc.targetPrefix}cc'
'';
2016-02-25 16:32:08 +00:00
installPhase = ''
mkdir -p $out/bin $out/share/man/man6
cp gti $out/bin
cp gti.6 $out/share/man/man6
'';
meta = with lib; {
2021-03-05 01:27:20 +00:00
homepage = "https://r-wos.org/hacks/gti";
2016-02-25 16:32:08 +00:00
license = licenses.mit;
description = "Humorous typo-based git runner; drives a car over the terminal";
maintainers = with maintainers; [ fadenb ];
platforms = platforms.unix;
};
}