nixpkgs/pkgs/applications/version-management/scmpuff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
778 B
Nix
Raw Permalink Normal View History

{ lib, buildGoModule, fetchFromGitHub, testers, scmpuff }:
2022-04-09 09:34:26 +00:00
buildGoModule rec {
pname = "scmpuff";
2022-04-09 09:34:26 +00:00
version = "0.5.0";
src = fetchFromGitHub {
owner = "mroth";
repo = pname;
2022-04-09 09:34:26 +00:00
rev = "v${version}";
sha256 = "sha256-+L0W+M8sZdUSCWj9Ftft1gkRRfWMHdxon2xNnotx8Xs=";
};
vendorHash = "sha256-7WHVSEz3y1nxWfbxkzkfHhINLC8+snmWknHyUUpNy7c=";
2022-04-09 09:34:26 +00:00
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
passthru.tests.version = testers.testVersion {
2022-04-09 09:34:26 +00:00
package = scmpuff;
command = "scmpuff version";
};
meta = with lib; {
description = "Add numbered shortcuts to common git commands";
homepage = "https://github.com/mroth/scmpuff";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
2023-11-27 01:17:53 +00:00
mainProgram = "scmpuff";
};
}