-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathnode-packages.nix
113 lines (111 loc) · 3.54 KB
/
node-packages.nix
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# This file has been generated by node2nix 1.11.1. Do not edit!
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}:
let
sources = {
"colors-1.4.0" = {
name = "colors";
packageName = "colors";
version = "1.4.0";
src = fetchurl {
url = "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz";
sha512 = "a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==";
};
};
"mime-1.6.0" = {
name = "mime";
packageName = "mime";
version = "1.6.0";
src = fetchurl {
url = "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz";
sha512 = "x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==";
};
};
"moment-2.29.4" = {
name = "moment";
packageName = "moment";
version = "2.29.4";
src = fetchurl {
url = "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz";
sha512 = "5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==";
};
};
"node-fetch-2.6.7" = {
name = "node-fetch";
packageName = "node-fetch";
version = "2.6.7";
src = fetchurl {
url = "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz";
sha512 = "ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==";
};
};
"tr46-0.0.3" = {
name = "tr46";
packageName = "tr46";
version = "0.0.3";
src = fetchurl {
url = "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz";
sha512 = "N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==";
};
};
"webidl-conversions-3.0.1" = {
name = "webidl-conversions";
packageName = "webidl-conversions";
version = "3.0.1";
src = fetchurl {
url = "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz";
sha512 = "2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==";
};
};
"whatwg-url-5.0.0" = {
name = "whatwg-url";
packageName = "whatwg-url";
version = "5.0.0";
src = fetchurl {
url = "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz";
sha512 = "saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==";
};
};
};
args = {
name = "_at_lionello_slash_onedrive-cli";
packageName = "@lionello/onedrive-cli";
version = "1.0.8";
src = ./.;
dependencies = [
sources."colors-1.4.0"
sources."mime-1.6.0"
sources."moment-2.29.4"
sources."node-fetch-2.6.7"
sources."tr46-0.0.3"
sources."webidl-conversions-3.0.1"
sources."whatwg-url-5.0.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "OneDrive CLI";
license = "MIT";
};
production = true;
bypassCache = true;
reconstructLock = false;
};
in
{
args = args;
sources = sources;
tarball = nodeEnv.buildNodeSourceDist args;
package = nodeEnv.buildNodePackage args;
shell = nodeEnv.buildNodeShell args;
nodeDependencies = nodeEnv.buildNodeDependencies (lib.overrideExisting args {
src = stdenv.mkDerivation {
name = args.name + "-package-json";
src = nix-gitignore.gitignoreSourcePure [
"*"
"!package.json"
"!package-lock.json"
] args.src;
dontBuild = true;
installPhase = "mkdir -p $out; cp -r ./* $out;";
};
});
}