dput-ng: fix eval (#364540)
[NixPkgs.git] / pkgs / by-name / sc / scmpuff / package.nix
blobdabc7226af316a0f3fda9efb943de996f5dd4b30
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   testers,
6   scmpuff,
7 }:
9 buildGoModule rec {
10   pname = "scmpuff";
11   version = "0.5.0";
13   src = fetchFromGitHub {
14     owner = "mroth";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "sha256-+L0W+M8sZdUSCWj9Ftft1gkRRfWMHdxon2xNnotx8Xs=";
18   };
20   vendorHash = "sha256-7WHVSEz3y1nxWfbxkzkfHhINLC8+snmWknHyUUpNy7c=";
22   ldflags = [
23     "-s"
24     "-w"
25     "-X main.VERSION=${version}"
26   ];
28   passthru.tests.version = testers.testVersion {
29     package = scmpuff;
30     command = "scmpuff version";
31   };
33   meta = with lib; {
34     description = "Add numbered shortcuts to common git commands";
35     homepage = "https://github.com/mroth/scmpuff";
36     license = licenses.mit;
37     maintainers = with maintainers; [ cpcloud ];
38     mainProgram = "scmpuff";
39   };