evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sc / scmpuff / package.nix
bloba94099e30478b8bf6931bc0dbaf05e9d97ad4624
1 { lib, buildGoModule, fetchFromGitHub, testers, scmpuff }:
3 buildGoModule rec {
4   pname = "scmpuff";
5   version = "0.5.0";
7   src = fetchFromGitHub {
8     owner = "mroth";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-+L0W+M8sZdUSCWj9Ftft1gkRRfWMHdxon2xNnotx8Xs=";
12   };
14   vendorHash = "sha256-7WHVSEz3y1nxWfbxkzkfHhINLC8+snmWknHyUUpNy7c=";
16   ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
18   passthru.tests.version = testers.testVersion {
19     package = scmpuff;
20     command = "scmpuff version";
21   };
23   meta = with lib; {
24     description = "Add numbered shortcuts to common git commands";
25     homepage = "https://github.com/mroth/scmpuff";
26     license = licenses.mit;
27     maintainers = with maintainers; [ cpcloud ];
28     mainProgram = "scmpuff";
29   };