From 73d9a608e5d3ff6ae4a019fb5b726db085b3db42 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 1 Dec 2025 21:54:22 +0100 Subject: [PATCH] meshtastic-web: init at 2.6.7 --- pkgs/by-name/me/meshtastic-web/package.nix | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/me/meshtastic-web/package.nix diff --git a/pkgs/by-name/me/meshtastic-web/package.nix b/pkgs/by-name/me/meshtastic-web/package.nix new file mode 100644 index 000000000000..ff09475e3425 --- /dev/null +++ b/pkgs/by-name/me/meshtastic-web/package.nix @@ -0,0 +1,41 @@ +{ + stdenv, + lib, + fetchurl, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "meshtastic-web"; + version = "2.6.7"; + + src = fetchurl { + url = "https://github.com/meshtastic/web/releases/download/v${finalAttrs.version}/build.tar"; + hash = "sha256-o09DYKBIZUOmmN4g3lM1V0kudjq0Wfwn/OqV0ElRRO0="; + }; + + sourceRoot = "."; + + buildPhase = '' + runHook preBuild + + gzip -dr . + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out + cp -ar . $out/ + + runHook postInstall + ''; + + meta = { + description = "Meshtastic Web Client/JS Monorepo"; + homepage = "https://github.com/meshtastic/web"; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ drupol ]; + }; +})