]>
Commit | Line | Data |
---|---|---|
1 | { pkgs }: | |
2 | with pkgs; | |
3 | rec { | |
4 | nodeEnv = import ./node-env.nix; | |
5 | ||
6 | fetchedGithub = path: | |
7 | let | |
8 | json = lib.importJSON path; | |
9 | in rec { | |
10 | version = json.tag; | |
11 | pname = json.meta.name; | |
12 | name = "${pname}-${version}"; | |
13 | src = fetchFromGitHub json.github; | |
14 | }; | |
15 | ||
16 | fetchedGit = path: | |
17 | let | |
18 | json = lib.importJSON path; | |
19 | in rec { | |
20 | version = json.tag; | |
21 | pname = json.meta.name; | |
22 | name = "${pname}-${version}"; | |
23 | src = fetchgit json.git; | |
24 | }; | |
25 | ||
26 | fetchedGitPrivate = path: | |
27 | let | |
28 | json = lib.importJSON path; | |
29 | in rec { | |
30 | version = json.tag; | |
31 | pname = json.meta.name; | |
32 | name = "${pname}-${version}"; | |
33 | src = builtins.fetchGit { | |
34 | url = json.git.url; | |
35 | ref = "master"; | |
36 | rev = json.git.rev; | |
37 | }; | |
38 | }; | |
39 | } // (if builtins.pathExists ./private then callPackage ./private {} else {}) |