nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 30 lines 716 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "microplane"; 5 version = "0.0.34"; 6 7 src = fetchFromGitHub { 8 owner = "Clever"; 9 repo = "microplane"; 10 rev = "v${version}"; 11 sha256 = "sha256-ZrBkVXRGZp8yGFIBo7sLGvJ8pMQq7Cq0xJiko57z164="; 12 }; 13 14 vendorSha256 = "sha256-PqSjSFTVrIsQ065blIxZ9H/ARku6BEcnjboH+0K0G14="; 15 16 ldflags = [ 17 "-s" "-w" "-X main.version=${version}" 18 ]; 19 20 postInstall = '' 21 ln -s $out/bin/microplane $out/bin/mp 22 ''; 23 24 meta = with lib; { 25 description = "A CLI tool to make git changes across many repos"; 26 homepage = "https://github.com/Clever/microplane"; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ dbirks ]; 29 }; 30}