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