Vite+ in a flake.nix?

I would like to try the new Vite+, but, sadly, it’s one of those cases where everything starts from a script: curl -fsSL https://vite.plus | bash.

Is there a way to nix it? Like, adding it in a flake.nix and run the shell via nix develop?

Never done it before, and I’m also relatively new to Nix and NixOS, that’s why I’m asking.

You would need to make a nix package for it in nixpkgs(you can also keep it private but I’d highly encourage making it public for everyone to use!)

I feel like that might be a hard one to be my first nix package :sweat_smile: and one with possibly many eyes on it… :eyes:

1 Like

Then you might want to understand the Nix fundamentals before buying into experimental flakes. I’ve witnessed a lot of bad abstractions from not taking a step back to understand what’s going on before adding flake-utils, then flake-parts, then adding system parameter (shouldn’t be required) to overlays, & so on to add abstractions on top of abstractions when there would be a simpler solution had the user known more about stable Nix.

Vite+ will manage your global Node.js runtime and package manager.

I think you are right that this is fairly difficult to get working as intended on NixOS

Maybe try it in distrobox.

2 Likes

There are not one, but two issues open already to improve the Nix experience.

1 Like