gitAndTools.lab: simplify by moving to buildGoModule!

This commit is contained in:
Will Dietz
2019-03-20 14:55:05 -05:00
parent 3d8170098f
commit 68ded8b4ec
2 changed files with 7 additions and 516 deletions
@@ -1,13 +1,9 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
name = "lab-${version}";
buildGoModule rec {
pname = "lab";
version = "0.15.2";
goPackagePath = "github.com/zaquestion/lab";
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
@@ -15,7 +11,9 @@ buildGoPackage rec {
sha256 = "1210cf6ss4ivm2jxq3k3c34vpra02pl91fpmvqbvw5sm53j7xfaf";
};
goDeps = ./deps.nix;
subPackages = [ "." ];
modSha256 = "1g72fnkibmdd9i20wgp5fjf556xp2xwan06dmn3f5rkmnicy3ccl";
postInstall = ''
mkdir -p $out/share/zsh/site-functions
@@ -27,7 +25,7 @@ buildGoPackage rec {
description = "Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab";
homepage = https://zaquestion.github.io/lab;
license = licenses.unlicense;
maintainers = [ maintainers.marsam ];
maintainers = with maintainers; [ marsam dtzWill ];
platforms = platforms.all;
};
}