-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathapp.nix
More file actions
36 lines (33 loc) · 1023 Bytes
/
app.nix
File metadata and controls
36 lines (33 loc) · 1023 Bytes
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
{
lib,
config,
dream2nix,
pkgs,
...
} @ args: let
packageJSON = lib.importJSON ./package.json;
in {
imports = [
dream2nix.modules.dream2nix.nodejs-package-json-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
];
inherit (packageJSON) name version;
# Take advantage of a shell injection vector in dream2nix in order to apply a
# workaround for an issue with `npm i` converting dependencies specified with
# `git+https://` or `github:` to `git+ssh://`.
# See:
# - https://github.com/npm/cli/issues/2610
# - https://github.com/npm/cli/issues/2631
nodejs-package-json.npmArgs = lib.mkAfter [
"--package-lock-only' ; ${lib.getExe pkgs.gnused} -i -e 's|git+ssh://|git+https://|g' ./package-lock.json #"
];
mkDerivation = {
src = lib.cleanSource ./.;
doCheck = false;
meta = {
# XXX broken somehow? `lib.licenses.gpl3` works...
#license = lib.licenses.cc-by-nc-40;
homepage = "https://github.com/LowPowerLab/RaspberryPi-Gateway";
};
};
}