Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 32 lines 839 B view raw
1{ buildGoModule, fetchFromGitHub, lib }: 2 3buildGoModule rec { 4 pname = "mod"; 5 version = "0.7.1"; 6 7 src = fetchFromGitHub { 8 owner = "marwan-at-work"; 9 repo = "mod"; 10 rev = "v${version}"; 11 sha256 = "sha256-QkLARUN/NiN0D6VEhosdFJSce6DP+sWRWFwAEocZaOQ="; 12 }; 13 14 vendorHash = "sha256-5A4W99wcuXMWH0s+uykBWuKCxo8wr3GbTpUKj+Ql0os="; 15 16 doCheck = false; 17 18 subPackages = [ "cmd/mod" ]; 19 20 meta = with lib; { 21 description = "Automated Semantic Import Versioning Upgrades for Go"; 22 mainProgram = "mod"; 23 longDescription = '' 24 Command line tool to upgrade/downgrade Semantic Import Versioning in Go 25 Modules. 26 ''; 27 homepage = "https://github.com/marwan-at-work/mod"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ kalbasit ]; 30 platforms = platforms.linux ++ platforms.darwin; 31 }; 32}