package.nix (821B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 }: 6 7 buildGoModule (finalAttrs: { 8 pname = "mqtt-executor"; 9 version = "1.3.4"; 10 11 __structuredAttrs = true; 12 13 src = fetchFromGitHub { 14 owner = "rainu"; 15 repo = "mqtt-executor"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-y3mvTWlIpHL0W4z7psbsKBkWn07RAFsx3D/pjcQe+Nk="; 18 }; 19 20 patches = [ ./go.mod.patch ]; 21 22 vendorHash = "sha256-04Qc+9QDjNfHy5sGGbm+HvLRtKZb7YSKxV9ebDdtpOA="; 23 24 meta = { 25 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"; 26 homepage = "https://github.com/rainu/mqtt-executor"; 27 license = lib.licenses.mit; 28 maintainers = [ lib.maintainers.sikmir ]; 29 mainProgram = "mqtt-executor"; 30 }; 31 })
