2022-04-20 14:40:48 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, scmpuff }:
|
2020-04-03 12:10:04 +00:00
|
|
|
|
2022-04-09 09:34:26 +00:00
|
|
|
buildGoModule rec {
|
2020-04-03 12:10:04 +00:00
|
|
|
pname = "scmpuff";
|
2022-04-09 09:34:26 +00:00
|
|
|
version = "0.5.0";
|
2020-04-03 12:10:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mroth";
|
|
|
|
repo = pname;
|
2022-04-09 09:34:26 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-+L0W+M8sZdUSCWj9Ftft1gkRRfWMHdxon2xNnotx8Xs=";
|
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-7WHVSEz3y1nxWfbxkzkfHhINLC8+snmWknHyUUpNy7c=";
|
2022-04-09 09:34:26 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-04-09 09:34:26 +00:00
|
|
|
package = scmpuff;
|
|
|
|
command = "scmpuff version";
|
2020-04-03 12:10:04 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-03 12:10:04 +00:00
|
|
|
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";
|
2020-04-03 12:10:04 +00:00
|
|
|
};
|
|
|
|
}
|