2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, curl, ncurses, pkg-config, readline
|
2020-03-28 07:28:52 +00:00
|
|
|
, cmake }:
|
2018-01-31 21:37:47 +00:00
|
|
|
let
|
2020-03-18 10:47:13 +00:00
|
|
|
version = "0.3.2";
|
2018-01-31 21:37:47 +00:00
|
|
|
in
|
2019-01-30 00:14:41 +00:00
|
|
|
buildGoPackage {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "grv";
|
|
|
|
inherit version;
|
2018-01-31 21:37:47 +00:00
|
|
|
|
2020-03-28 07:28:52 +00:00
|
|
|
buildInputs = [ ncurses readline curl ];
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2018-01-31 21:37:47 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/rgburke/grv";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rgburke";
|
|
|
|
repo = "grv";
|
|
|
|
rev = "v${version}";
|
2020-03-18 10:47:13 +00:00
|
|
|
sha256 = "0bpjsk35rlp56z8149z890adnhmxyh743vsls3q86j4682b83kyf";
|
2018-02-07 21:15:50 +00:00
|
|
|
fetchSubmodules = true;
|
2018-01-31 21:37:47 +00:00
|
|
|
};
|
|
|
|
|
2018-10-31 13:46:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm util/update_latest_release.go
|
|
|
|
'';
|
|
|
|
|
2020-03-28 07:28:52 +00:00
|
|
|
postConfigure = ''
|
|
|
|
cd $NIX_BUILD_TOP/go/src/$goPackagePath
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
make build-only
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-28 01:50:57 +00:00
|
|
|
install -D grv $out/bin/grv
|
2020-03-28 07:28:52 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2018-02-05 18:19:15 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-04 21:50:15 +00:00
|
|
|
description = "GRV is a terminal interface for viewing Git repositories";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rgburke/grv";
|
2018-01-31 21:37:47 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ andir ];
|
|
|
|
};
|
|
|
|
}
|