blob: 9206a3ecf3cd6db71ee10aa095dbb77af2050836 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildNpmPackage,
fetchFromGitHub,
udev,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "particle-cli";
version = "3.40.1";
src = fetchFromGitHub {
owner = "particle-iot";
repo = "particle-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-rbCk54bTDwvbpRMUR9bUNLTuIHw3HnKoJE7euXMujxg=";
};
npmDepsHash = "sha256-gvnjrFTx1N/dIYSWHjj+PGxiVyiP3pdcDjPIix48cAI=";
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;
};
})
|