Giter VIP home page Giter VIP logo

Comments (4)

relief-melone avatar relief-melone commented on June 16, 2024

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.

relief-melone avatar relief-melone commented on June 16, 2024

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.

dominicegginton avatar dominicegginton commented on June 16, 2024

@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.

dominicegginton avatar dominicegginton commented on June 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.