2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2016-02-25 17:32:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gti";
|
2020-02-12 13:36:58 +01:00
|
|
|
version = "1.7.0";
|
2016-02-25 17:32:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rwos";
|
|
|
|
repo = "gti";
|
2017-08-12 11:05:14 +02:00
|
|
|
rev = "v${version}";
|
2020-02-12 13:36:58 +01:00
|
|
|
sha256 = "1jivnjswlhwjfg5v9nwfg3vfssvqbdxxf9znwmfb5dgfblg9wxw9";
|
2016-02-25 17:32:08 +01:00
|
|
|
};
|
|
|
|
|
2021-03-05 02:27:20 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace 'CC=cc' 'CC=${stdenv.cc.targetPrefix}cc'
|
|
|
|
'';
|
|
|
|
|
2016-02-25 17:32:08 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man6
|
|
|
|
cp gti $out/bin
|
|
|
|
cp gti.6 $out/share/man/man6
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-03-05 02:27:20 +01:00
|
|
|
homepage = "https://r-wos.org/hacks/gti";
|
2016-02-25 17:32:08 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "Humorous typo-based git runner; drives a car over the terminal";
|
|
|
|
maintainers = with maintainers; [ fadenb ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|