1
0
Fork 0
defenestrate/booster/mqtt-explorer.nix

18 lines
603 B
Nix

{ stdenvNoCC, lib, fetchurl, appimage-run, makeWrapper, symlinkJoin }:
let
pname = "MQTT-Explorer";
version = "0.4.0-beta1";
mqtt-explorer = fetchurl {
url ="https://github.com/thomasnordquist/${pname}/releases/download/0.0.0-${version}/${pname}-${version}.AppImage";
sha256 = "0x9ava13hn1nkk2kllh5ldi4b3hgmgwahk08sq48yljilgda4ppn";
};
in symlinkJoin {
name = "mqtt-explorer";
paths = [ appimage-run ];
buildInputs = [ makeWrapper ];
postBuild = ''
mv $out/bin/appimage-run $out/bin/mqtt-explorer
wrapProgram $out/bin/mqtt-explorer --add-flags "${mqtt-explorer}"
'';
}