commit 1b5fbb78e5a05f15680ffc5a6ae24182c46d6f93
parent 3d43624af250a5013d3e0038ea43a1322a6d94a1
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 28 Jul 2024 22:13:40 +0400
Move mqtt-explorer to nixpkgs
Diffstat:
2 files changed, 0 insertions(+), 90 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -421,7 +421,6 @@ lib.makeScope newScope (
mqtt-benchmark = callPackage ./mqtt/mqtt-benchmark { };
mqtt-c = callPackage ./mqtt/mqtt-c { };
mqtt-cli = callPackage ./mqtt/mqtt-cli { };
- mqtt-explorer = callPackage ./mqtt/mqtt-explorer { };
mqtt-launcher = callPackage ./mqtt/mqtt-launcher { };
mqtt-logger = callPackage ./mqtt/mqtt-logger { };
mqtt-proxy = callPackage ./mqtt/mqtt-proxy { };
diff --git a/pkgs/mqtt/mqtt-explorer/default.nix b/pkgs/mqtt/mqtt-explorer/default.nix
@@ -1,89 +0,0 @@
-{
- lib,
- stdenv,
- appimageTools,
- fetchfromgh,
- undmg,
- makeWrapper,
-}:
-
-let
- pname = "mqtt-explorer";
- version = "0.3.5";
-
- srcs = {
- x86_64-linux = fetchfromgh {
- owner = "thomasnordquist";
- repo = "MQTT-Explorer";
- name = "MQTT-Explorer-${version}.AppImage";
- version = "v${version}";
- hash = "sha256-Yfz42+dVIx3xwIOmYltp5e9rYka+KskvQuxJVVBgbg4=";
- };
- x86_64-darwin = fetchfromgh {
- owner = "thomasnordquist";
- repo = "MQTT-Explorer";
- name = "MQTT-Explorer-${version}.dmg";
- version = "v${version}";
- hash = "sha256-Cf2qgoxaNGpcaW0oA605vd5zQiZX1m54ccW8Tbe8qvU=";
- };
- };
- src =
- srcs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
-
- appimageContents = appimageTools.extract { inherit pname version src; };
-
- linux = appimageTools.wrapType2 rec {
- inherit
- pname
- version
- src
- meta
- ;
-
- extraInstallCommands = ''
- mv $out/bin/${pname}-${version} $out/bin/${pname}
-
- install -Dm444 ${appimageContents}/mqtt-explorer.desktop -t $out/share/applications
- substituteInPlace $out/share/applications/mqtt-explorer.desktop \
- --replace-fail "Exec=AppRun" "Exec=$out/bin/mqtt-explorer"
-
- install -Dm444 ${appimageContents}/mqtt-explorer.png -t $out/share/icons/hicolor/512x512/apps
- '';
- };
-
- darwin = stdenv.mkDerivation {
- inherit
- pname
- version
- src
- meta
- ;
-
- nativeBuildInputs = [
- undmg
- makeWrapper
- ];
-
- sourceRoot = ".";
-
- installPhase = ''
- runHook preInstall
- mkdir -p $out/Applications
- mv *.app $out/Applications
- makeWrapper $out/{Applications/MQTT\ Explorer.app/Contents/MacOS/MQTT\ Explorer,bin/mqtt-explorer}
- runHook postInstall
- '';
- };
-
- meta = {
- description = "An all-round MQTT client that provides a structured topic overview";
- homepage = "https://mqtt-explorer.com/";
- sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
- license = lib.licenses.cc-by-40;
- maintainers = [ lib.maintainers.sikmir ];
- platforms = builtins.attrNames srcs;
- mainProgram = "mqtt-explorer";
- skip.ci = true;
- };
-in
-if stdenv.isDarwin then darwin else linux