feat(3p): add napalm
For another project I need a way to fetch JS dependencies, as I couldn't avoid them there. napalm seems to be the best option for this at the moment, as the approach of running a local registry system seems to be more robust than using npm's offline mode (which npmlock2nix) is doing. If the latter gets better, it may be prudent to switch. napalm is relatively unproblematic, i.e. no Haskell in IFD. Change-Id: Icf57d3505a55422681bd90c445bde52fcf5841aa Reviewed-on: https://cl.tvl.fyi/c/depot/+/7289 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
7b7a8919b1
commit
41451c6dd8
2 changed files with 19 additions and 0 deletions
7
third_party/napalm/default.nix
vendored
Normal file
7
third_party/napalm/default.nix
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ depot, pkgs, ... }:
|
||||||
|
|
||||||
|
pkgs.callPackage depot.third_party.sources.napalm { } // {
|
||||||
|
meta.ci.targets = [
|
||||||
|
"napalm-registry"
|
||||||
|
];
|
||||||
|
}
|
12
third_party/sources/sources.json
vendored
12
third_party/sources/sources.json
vendored
|
@ -59,6 +59,18 @@
|
||||||
"url": "https://github.com/nmattia/naersk/archive/6944160c19cb591eb85bbf9b2f2768a935623ed3.tar.gz",
|
"url": "https://github.com/nmattia/naersk/archive/6944160c19cb591eb85bbf9b2f2768a935623ed3.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
|
"napalm": {
|
||||||
|
"branch": "master",
|
||||||
|
"description": "Support for building npm packages in Nix and lightweight npm registry [maintainer @nmattia]",
|
||||||
|
"homepage": "",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "napalm",
|
||||||
|
"rev": "dcb6e93c8b6945dc854bdce691a1bf99c8b701ca",
|
||||||
|
"sha256": "1hswnadvyf01x1m4i1b4ymxrcwy9my7bmj26nyl0bjmmq3j7fi7p",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/nix-community/napalm/archive/dcb6e93c8b6945dc854bdce691a1bf99c8b701ca.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"branch": "nixos-unstable",
|
"branch": "nixos-unstable",
|
||||||
"description": "Nix Packages collection",
|
"description": "Nix Packages collection",
|
||||||
|
|
Loading…
Reference in a new issue