asciigraph: switch to buildGoModule

This commit is contained in:
Aaron Jheng 2022-04-07 00:45:44 +00:00
parent 495b9f243a
commit 0bdc5fa67b
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -1,11 +1,9 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
pname = "asciigraph";
version = "0.5.3";
goPackagePath = "github.com/guptarohit/asciigraph";
src = fetchFromGitHub {
owner = "guptarohit";
repo = pname;
@ -13,10 +11,14 @@ buildGoPackage rec {
sha256 = "sha256-GzFJT4LI1QZzghs9g2A+pqkTg68XC+m9F14rYpMxEXM=";
};
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/guptarohit/asciigraph";
description = "Lightweight ASCII line graph command line app";
license = licenses.bsd3;
maintainers = [ maintainers.mmahut ];
maintainers = with maintainers; [ mmahut ];
};
}