particle-cli: init at 3.35.8 (#404510)

This commit is contained in:
Aleksana
2025-05-15 21:32:34 +08:00
committed by GitHub
2 changed files with 58 additions and 0 deletions
+11
View File
@@ -11409,6 +11409,17 @@
githubId = 10786794;
name = "Markus Hihn";
};
jess = {
name = "Jessica";
email = "jess+nix@jessie.cafe";
github = "ttrssreal";
githubId = 43591752;
keys = [
{
fingerprint = "8092 3BD1 ECD0 E436 671D C8E9 BA33 5068 6C91 8606";
}
];
};
jessemoore = {
email = "jesse@jessemoore.dev";
github = "jesseDMoore1994";
+47
View File
@@ -0,0 +1,47 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
udev,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "particle-cli";
version = "3.35.8";
src = fetchFromGitHub {
owner = "particle-iot";
repo = "particle-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-t4alWb6W6AHBAsyRGLBTmjB0JpfzKBQ+yt2LESuU7YE=";
};
npmDepsHash = "sha256-FEpj9u0KqQ+yLtwFgahun6AUSolbEiWjWstglD9yyQ8=";
buildInputs = [
udev
];
dontNpmBuild = true;
dontNpmPrune = true;
postPatch = ''
ln -s npm-shrinkwrap.json package-lock.json
'';
postInstall = ''
install -D -t $out/etc/udev/rules.d \
$out/lib/node_modules/particle-cli/assets/50-particle.rules
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Command Line Interface for Particle Cloud and devices";
homepage = "https://github.com/particle-iot/particle-cli";
maintainers = with lib.maintainers; [ jess ];
mainProgram = "particle";
license = lib.licenses.asl20;
};
})