2019-01-11 10:45:23 +01:00
|
|
|
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }:
|
2018-01-31 22:37:47 +01:00
|
|
|
let
|
2019-01-09 22:16:22 +01:00
|
|
|
version = "0.3.1";
|
2018-01-31 22:37:47 +01:00
|
|
|
in
|
2018-09-14 19:41:03 +02:00
|
|
|
buildGo19Package {
|
2018-01-31 22:37:47 +01:00
|
|
|
name = "grv-${version}";
|
|
|
|
|
2019-01-11 10:45:23 +01:00
|
|
|
buildInputs = [ ncurses readline curl libgit2_0_27 ];
|
2018-01-31 22:37:47 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
goPackagePath = "github.com/rgburke/grv";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rgburke";
|
|
|
|
repo = "grv";
|
|
|
|
rev = "v${version}";
|
2019-01-09 22:16:22 +01:00
|
|
|
sha256 = "16ylapsibqrqwx45l4ypr3av07rd1haf10v838mjqsakf8l1xc0b";
|
2018-02-07 22:15:50 +01:00
|
|
|
fetchSubmodules = true;
|
2018-01-31 22:37:47 +01:00
|
|
|
};
|
|
|
|
|
2018-10-31 14:46:48 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm util/update_latest_release.go
|
|
|
|
'';
|
|
|
|
|
2018-02-05 19:19:15 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=" "-X main.version=${version}" ];
|
|
|
|
|
2018-01-31 22:37:47 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-10-04 23:50:15 +02:00
|
|
|
description = "GRV is a terminal interface for viewing Git repositories";
|
2018-01-31 22:37:47 +01:00
|
|
|
homepage = https://github.com/rgburke/grv;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ andir ];
|
|
|
|
};
|
|
|
|
}
|