Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting a derivation for vitejs #33

Open
gleachkr opened this issue Feb 14, 2024 · 1 comment
Open

Troubleshooting a derivation for vitejs #33

gleachkr opened this issue Feb 14, 2024 · 1 comment

Comments

@gleachkr
Copy link

Hi - I wonder if I you might be able to help troubleshoot an attempt at building vitejs using mkPnpmPackage. The relevant relevant call is:

mkPnpmPackage {
      src = pkgs.fetchFromGitHub {
        owner = "vitejs";
        repo = "vite";
        rev = "v5.1.2";
        hash = "sha256-8cZoUb757iPeV2yabotlyg1bf5RGl9BuNEF1885FZr8=";
      };
    };

And the result appears to be that I hit this:

then throw "No matching case found!"

Thanks for your help!

@Odilf
Copy link

Odilf commented Sep 29, 2024

Got the same error, a solution that worked for me was adding lockfile-include-tarball-url=true in my .npmrc.

The problem is that the lockfile seems to not include tarball urls by default and lockfile-include-tarball-url is set to false by default. If the option is needed then perhaps it's a good idea to put it in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants