default.nix (792B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 }: 6 7 buildGoModule (finalAttrs: { 8 pname = "mqtt-executor"; 9 version = "1.3.4"; 10 11 src = fetchFromGitHub { 12 owner = "rainu"; 13 repo = "mqtt-executor"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-y3mvTWlIpHL0W4z7psbsKBkWn07RAFsx3D/pjcQe+Nk="; 16 }; 17 18 patches = [ ./go.mod.patch ]; 19 20 vendorHash = "sha256-04Qc+9QDjNfHy5sGGbm+HvLRtKZb7YSKxV9ebDdtpOA="; 21 22 meta = { 23 description = "A simple MQTT client that subscribes to a configurable list of MQTT topics on the specified broker and executes a given shell script/command whenever a message arrives"; 24 homepage = "https://github.com/rainu/mqtt-executor"; 25 license = lib.licenses.mit; 26 maintainers = [ lib.maintainers.sikmir ]; 27 mainProgram = "mqtt-executor"; 28 }; 29 })