Merge pull request #167616 from aaronjheng/asciigraph
asciigraph: switch to buildGoModule
This commit is contained in:
commit
ae622f6eec
1 changed files with 7 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "asciigraph";
|
pname = "asciigraph";
|
||||||
version = "0.5.3";
|
version = "0.5.3";
|
||||||
|
|
||||||
goPackagePath = "github.com/guptarohit/asciigraph";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "guptarohit";
|
owner = "guptarohit";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
|
@ -13,10 +11,14 @@ buildGoPackage rec {
|
||||||
sha256 = "sha256-GzFJT4LI1QZzghs9g2A+pqkTg68XC+m9F14rYpMxEXM=";
|
sha256 = "sha256-GzFJT4LI1QZzghs9g2A+pqkTg68XC+m9F14rYpMxEXM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/guptarohit/asciigraph";
|
homepage = "https://github.com/guptarohit/asciigraph";
|
||||||
description = "Lightweight ASCII line graph ╭┈╯ command line app";
|
description = "Lightweight ASCII line graph ╭┈╯ command line app";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.mmahut ];
|
maintainers = with maintainers; [ mmahut ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue