default.nix (713B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 }: 6 7 buildGoModule rec { 8 pname = "mochi"; 9 version = "2.6.4"; 10 11 src = fetchFromGitHub { 12 owner = "mochi-mqtt"; 13 repo = "server"; 14 rev = "v${version}"; 15 hash = "sha256-oQDxagj4+am6DNfdZB1iHwlfFW0Q/b4Sq8YiP5sVqWM="; 16 }; 17 18 vendorHash = "sha256-+28spfekUVTDCvDgmKXpHNRQNAlQ4k9lEU4H6gZu9ZI="; 19 20 postInstall = '' 21 mv $out/bin/{cmd,mochi} 22 mv $out/bin/{docker,mochi-docker} 23 ''; 24 25 meta = { 26 description = "The fully compliant, embeddable high-performance Go MQTT v5 server for IoT, smarthome, and pubsub"; 27 homepage = "https://github.com/mochi-mqtt/server"; 28 license = lib.licenses.mit; 29 maintainers = [ lib.maintainers.sikmir ]; 30 }; 31 }