nixpkgs/pkgs/applications/version-management/git-and-tools/scmpuff/default.nix
Bobby Rong 71e504ff21
scmpuff: remove unnecessary platforms
See #153464, for buildGoModule this should only be set if the package doesn't work with the default platforms.
2022-04-09 22:37:23 +08:00

30 lines
747 B
Nix

{ lib, buildGoModule, fetchFromGitHub, testVersion, scmpuff }:
buildGoModule rec {
pname = "scmpuff";
version = "0.5.0";
src = fetchFromGitHub {
owner = "mroth";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+L0W+M8sZdUSCWj9Ftft1gkRRfWMHdxon2xNnotx8Xs=";
};
vendorSha256 = "sha256-7WHVSEz3y1nxWfbxkzkfHhINLC8+snmWknHyUUpNy7c=";
ldflags = [ "-s" "-w" "-X main.VERSION=${version}" ];
passthru.tests.version = testVersion {
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 ];
};
}