Created
November 26, 2025 20:12
-
-
Save drupol/ad1b519eb103967df15bb868b20a2627 to your computer and use it in GitHub Desktop.
pkgs/by-name/me/meshtasticd/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| stdenv, | |
| fetchFromGitHub, | |
| platformio, | |
| writableTmpDirAsHomeHook, | |
| }: | |
| let | |
| platform-native = fetchFromGitHub { | |
| owner = "meshtastic"; | |
| repo = "platform-native"; | |
| hash = "sha256-2+/JxFlyx6VOJubI+khcuHD5l9mwlGfKIPHKUqhiXWo="; | |
| rev = "622341c6de8a239704318b10c3dbb00c21a3eab3"; | |
| }; | |
| in | |
| stdenv.mkDerivation (finalAttrs: { | |
| pname = "meshtasticd"; | |
| version = "2.6.11.60ec05e"; | |
| src = fetchFromGitHub { | |
| owner = "meshtastic"; | |
| repo = "firmware"; | |
| hash = "sha256-+QQffiyH2kL5rTiRKsY5gN8RxWcm+Zan2nnNd8wXe5I="; | |
| tag = "v${finalAttrs.version}"; | |
| fetchSubmodules = true; | |
| }; | |
| postPatch = '' | |
| substituteInPlace arch/portduino/portduino.ini \ | |
| --replace-fail 'https://github.com/meshtastic/platform-native/archive/622341c6de8a239704318b10c3dbb00c21a3eab3.zip' '${platform-native}' | |
| ''; | |
| nativeBuildInputs = [ | |
| platformio | |
| writableTmpDirAsHomeHook | |
| ]; | |
| strictDeps = true; | |
| buildInputs = [ | |
| ]; | |
| buildPhase = '' | |
| runHook preBuild | |
| platformio run --environment native | |
| runHook postBuild | |
| ''; | |
| installPhase = '' | |
| runHook preInstall | |
| runHook postInstall | |
| ''; | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment