nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 29 lines 793 B view raw
1{ buildGoModule, fetchFromGitHub, lib }: 2 3buildGoModule rec { 4 pname = "mod"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "marwan-at-work"; 9 repo = "mod"; 10 rev = "v${version}"; 11 sha256 = "1v7qy0q6fb9amcggwzdygl290zhr3w3zgmig2rm5zx91kw973sqc"; 12 }; 13 14 modSha256 = "1s33i4kp1vzfp97909pyzdlvi69siw1i2lbi2kbp9yrn163w6928"; 15 16 subPackages = [ "cmd/mod" ]; 17 18 meta = with lib; { 19 description = "Automated Semantic Import Versioning Upgrades for Go"; 20 longDescription = '' 21 Command line tool to upgrade/downgrade Semantic Import Versioning in Go 22 Modules. 23 ''; 24 homepage = https://github.com/marwan-at-work/mod; 25 license = licenses.mit; 26 maintainers = with maintainers; [ kalbasit ]; 27 platforms = platforms.linux ++ platforms.darwin; 28 }; 29}