default.nix (821B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoPackage, 5 }: 6 7 buildGoPackage { 8 pname = "janus-mqtt-proxy"; 9 version = "0-unstable-2022-02-19"; 10 11 src = fetchFromGitHub { 12 owner = "phoenix-mstu"; 13 repo = "janus-mqtt-proxy"; 14 rev = "bfdebffb6e277db00adf14d9a11f792cf418358a"; 15 hash = "sha256-RjhIV5GDHqtGz54Zfaph5JleBaAIDwIWGiknl1KNW+8="; 16 }; 17 18 subPackages = [ "cmd/proxy" ]; 19 goPackagePath = "github.com/phoenix-mstu/janus-mqtt-proxy"; 20 21 goDeps = ./deps.nix; 22 23 postInstall = '' 24 install -Dm644 $src/sample_configs/*.yaml -t $out/share/janus-mqtt-proxy/sample_configs 25 ''; 26 27 meta = { 28 description = "MITM proxy which can filter and modify MQTT packets"; 29 homepage = "https://github.com/phoenix-mstu/janus-mqtt-proxy"; 30 license = lib.licenses.gpl3; 31 maintainers = [ lib.maintainers.sikmir ]; 32 }; 33 }