Comments (4)
Probably related. I am currently trying to build a package to use as vimPlugin
{ pkgs, lib, napalm, ...}:
let
inherit (pkgs.stdenv) mkDerivation;
inherit (pkgs) fetchFromGitHub;
src = fetchFromGitHub {
owner = "microsoft";
repo = "vscode-js-debug";
rev = "1c26f2fb875eca49cbc75564fde6637ce3c1cf01";
sha256 = "sha256-87NnKip5uSvQmDckVeHL9nPOSztYIqF4bLBSgC9JaV8=";
};
in
pkgs.vimUtils.buildVimPlugin {
name = "vscode-js-debug";
src = napalm.buildPackage src {};
}
Still in it's early stages but the error i can see looks pretty similar
npm ERR! errno EAI_AGAIN
npm ERR! request to https://codeload.github.com/connor4312/picomatch/tar.gz/2fbe90b12eafa7dde816ff8c16be9e77271b0e0b failed, reason: getaddrinfo EAI_AGAIN codeload.github.com
I started from this article here before it recommended napalm at the bottom :D
https://www.nmattia.com/posts/2022-12-18-lockfile-trick-package-npm-project-with-nix/
The reason I am mentioning this because following this approach the same package picomatch caused problems being a git+ssh source. Maybe that helps as well
Would also love to see this work. napalm seems to be really great. Thank you for the effort!
from napalm.
I have taken a look at the source code but unfortunately it's still above my current nix skill level. However I would suspect that the issue is somewhere when the buildPackage passes the pacakge urls to the napalm-registry and the way that handles those links internally (unfortunately latest at the point where we are in haskell I am completely lost)
from napalm.
@relief-melone many thanks for taking a look at this.
In the time since posting my issue I had already found the article you mentioned and looked through the src here, this lead to me deciding to create my own nix flake as I felt I would be reusing it often. It's very similar to napalm but forgoes the registry.
See: dominicegginton/noxide
from napalm.
@relief-melone I updated noxide with a test for non npm deps: https://github.com/dominicegginton/noxide/blob/main/default.nix#L247-L255
from napalm.
Related Issues (20)
- The registry always binds on 8081, tests can't be run concurrently w/o sandbox
- node_modules get rebuilt with the main derivation HOT 2
- Building -bin packages
- napalm-registry should pick a random port
- Insert `npmCommands` directly into the build shell HOT 3
- How to pass custom pinned Node.js HOT 2
- jitsi-meet build fails, ".staging" directories ENOENT HOT 3
- Support for `yarn.lock` HOT 3
- Support scoped packages
- Derivation names not sanitized HOT 1
- In some envrionemtns fails with getaddrinfo ENOTFOUND localhost HOT 1
- Example usage inside flake.nix HOT 1
- Move to nix-community? HOT 9
- Nix flake check is failing HOT 1
- Missing LICENSE file HOT 2
- Fails on lockfileVersion: 3 HOT 2
- napalm-registry maybe should listen on ::1 as well as on 127.0.0.1? HOT 1
- Installing `sqlite3` ir `better-sqlite3` fails HOT 1
- Looking for a maintainer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from napalm.