Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
udev,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "particle-cli";
|
|
version = "3.41.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "particle-iot";
|
|
repo = "particle-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-RAYwCYgaQaw98Jmsc3TdUvQIdwI1TcCy1Gh0LSmNhxQ=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-OlsHXhZZ0QOGUlhVKX8/hl2L8qA1g7jcyMHmVZr8M5I=";
|
|
|
|
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;
|
|
};
|
|
})
|