3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/mod/default.nix
2020-03-21 05:47:00 -05:00

32 lines
883 B
Nix

{ buildGoModule, fetchFromGitHub, stdenv, Security }:
buildGoModule rec {
pname = "mod";
version = "0.2.2";
src = fetchFromGitHub {
owner = "marwan-at-work";
repo = "mod";
rev = "v${version}";
sha256 = "0aw6r90xf29wdhgnq580f837ga8yypzfhlzx1f2zj0kdhc58wbr5";
};
modSha256 = "0x7bdhvam9l23cbdqpna8kwg0v6yhgmw0hlbm48bbhjl27lg7svc";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "cmd/mod" ];
meta = with stdenv.lib; {
description = "Automated Semantic Import Versioning Upgrades for Go";
longDescription = ''
Command line tool to upgrade/downgrade Semantic Import Versioning in Go
Modules.
'';
homepage = "https://github.com/marwan-at-work/mod";
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}