Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6}: 7 8buildGoModule rec { 9 pname = "mx-takeover"; 10 version = "0.1.1"; 11 12 src = fetchFromGitHub { 13 owner = "musana"; 14 repo = "mx-takeover"; 15 tag = "v${version}"; 16 hash = "sha256-yDQd2FEVFFsUu3wKxp26VDhGjnuXmAtxpWoKjV6ZrHA="; 17 }; 18 19 vendorHash = "sha256-mJ8pVsgRM6lhEa8jtCxFhavkf7XFlBqEN9l1r0/GTvM="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 ]; 25 26 meta = with lib; { 27 description = "Tool to work with DNS MX records"; 28 homepage = "https://github.com/musana/mx-takeover"; 29 changelog = "https://github.com/musana/mx-takeover/releases/tag/v${src.tag}"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ fab ]; 32 mainProgram = "mx-takeover"; 33 broken = stdenv.hostPlatform.isDarwin; 34 }; 35}