nixpkgs/pkgs/applications/version-management/git-and-tools/grv/default.nix

35 lines
892 B
Nix
Raw Normal View History

2018-12-14 15:37:53 +00:00
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }:
2018-01-31 21:37:47 +00:00
let
version = "0.3.0";
2018-01-31 21:37:47 +00:00
in
buildGo19Package {
2018-01-31 21:37:47 +00:00
name = "grv-${version}";
2018-12-14 15:37:53 +00:00
buildInputs = [ ncurses readline curl libgit2 ];
2018-01-31 21:37:47 +00:00
nativeBuildInputs = [ pkgconfig ];
goPackagePath = "github.com/rgburke/grv";
src = fetchFromGitHub {
owner = "rgburke";
repo = "grv";
rev = "v${version}";
sha256 = "00v502mwnpv09l7fsbq3s72i5fz5dxbildwxgw0r8zzf6d54xrgl";
2018-02-07 21:15:50 +00:00
fetchSubmodules = true;
2018-01-31 21:37:47 +00:00
};
postPatch = ''
rm util/update_latest_release.go
'';
buildFlagsArray = [ "-ldflags=" "-X main.version=${version}" ];
2018-01-31 21:37:47 +00:00
meta = with stdenv.lib; {
2018-10-04 21:50:15 +00:00
description = "GRV is a terminal interface for viewing Git repositories";
2018-01-31 21:37:47 +00:00
homepage = https://github.com/rgburke/grv;
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ andir ];
};
}