-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnode-packages.nix
62 lines (60 loc) · 1.72 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
# This file has been generated by node2nix 1.10.0. Do not edit!
{nodeEnv, fetchurl, fetchgit, nix-gitignore, stdenv, lib, globalBuildInputs ? []}:
let
sources = {
"lnsocket-0.2.3" = {
name = "lnsocket";
packageName = "lnsocket";
version = "0.2.3";
src = fetchurl {
url = "https://registry.npmjs.org/lnsocket/-/lnsocket-0.2.3.tgz";
sha512 = "CI4cMKefLkwb//WEyjyiHnVp5z60kfbhWiiGctGfDsXxJ8kRpXt7VgaTHFDAQ4cUaJ+paMXtAItLyVRu0OVdqw==";
};
};
"minimist-1.2.6" = {
name = "minimist";
packageName = "minimist";
version = "1.2.6";
src = fetchurl {
url = "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz";
sha512 = "Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==";
};
};
};
args = {
name = "lnurl-commando";
packageName = "lnurl-commando";
version = "0.1.0";
src = ./.;
dependencies = [
sources."lnsocket-0.2.3"
sources."minimist-1.2.6"
];
buildInputs = globalBuildInputs;
meta = {
description = "LNUrl Commando server";
};
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;";
};
});
}