3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/mod/default.nix

32 lines
883 B
Nix
Raw Normal View History

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