-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
31 lines (30 loc) · 798 Bytes
/
default.nix
File metadata and controls
31 lines (30 loc) · 798 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
{
pkgs ? import ./pkgs.nix,
nodeVersion ? "12_x"
}:
with pkgs;
let
nodejs = lib.getAttrFromPath
(lib.splitString "." ("nodejs-" + nodeVersion))
pkgs;
nodePackages = lib.getAttrFromPath
(lib.splitString "." ("nodePackages_" + nodeVersion))
pkgs;
in
stdenv.mkDerivation {
name = "polykey-nativescript";
version = "0.0.1";
src = lib.cleanSourceWith {
filter = (path: type:
! (builtins.any
(r: (builtins.match r (builtins.baseNameOf path)) != null)
[
"node_modules"
"\.env"
])
);
src = lib.cleanSource attr.src;
};
buildInputs = [ nodejs dos2unix ];
checkInputs = [ webpack ];
}