default.nix (578B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 }: 6 7 buildGoModule rec { 8 pname = "mproxy"; 9 version = "0.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "mainflux"; 13 repo = "mproxy"; 14 rev = "v${version}"; 15 hash = "sha256-gjFAuYDOFslhfDN+uWY3RZroUDrMERvBGi+gTtl4eLo="; 16 }; 17 18 vendorHash = null; 19 20 postInstall = '' 21 mv $out/bin/{cmd,mproxy} 22 mv $out/bin/{client,mproxy-client} 23 ''; 24 25 meta = { 26 description = "MQTT proxy"; 27 homepage = "https://github.com/mainflux/mproxy"; 28 license = lib.licenses.asl20; 29 maintainers = [ lib.maintainers.sikmir ]; 30 }; 31 }