nix-prisma-example
asdf-nodejs
nix-prisma-example | asdf-nodejs | |
---|---|---|
1 | 27 | |
27 | 852 | |
- | 0.9% | |
0.0 | 5.6 | |
10 months ago | 3 months ago | |
Nix | Shell | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nix-prisma-example
-
The Curse of NixOS
For the system, I like the devos template:
https://github.com/divnix/devos
The idea of flakes is how you define inputs, and you define the system (and packages, and shell etc.) in the outputs using the inputs. The inputs are git repos which point to other flakes. You can mix and match these as much as you want (see the devos repo for examples) and when you build the derivation, it generates a lockfile for exact commits in that point in time what were used in the given inputs.
You commit the lockfile and in the other systems where you pull your config from the repo, it uses exactly those commits and installs the same versions as you did in your other systems.
This was quite annoying and hard to do before flakes. Now it's easy.
The problem what people face with building their system as a flake is combining the packages so you can point to `jq` from the unstable nixos and firefox from the stable train. I think this aspect needs better documentation so it wouldn't be so damn hard to learn (believe me, I know). Luckily there are projects like devos that give a nice template for people to play with (with documentation!)
Another use for flakes is to create a development shell for your repo, an example what I did a while ago:
https://github.com/pimeys/nix-prisma-example
Either have `nix-direnv` installed, enter the directory and say `direnv allow`, or just `nix develop` and it will gather, compile and install the correct versions of packages to your shell. Updating the packages? Call `nix flake update` in the directory, commit the lockfile and everybody else gets the new versions to their shell.
asdf-nodejs
-
Installing Erlang With VFOX
I have used a similar tool asdf before, but the previous experience of using asdf was not very good (I don’t mean to step on it~, the ASDF ecosystem is very strong), vfox now supports a lot of plugins, and can already manage the versions of most common mainstream languages.
-
Show HN: Flox 1.0 – Open-source dev env as code with Nix
Not nix based, but I really like https://github.com/jdx/mise too to manage dev tools.
It’s a modern version of https://github.com/asdf-vm/asdf written in Rust.
-
Elixir for Cynical Curmudgeons
That's what I would suggest as well. WSL2 and use asdf[1] to manage the erlang/elixir versions.
[1]: https://github.com/asdf-vm/asdf
-
Configuração do Windows para desenvolvimento
echo "Installing nodejs with asdf" asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git asdf install nodejs latest asdf global nodejs latest
-
Update Go version from CLI
However this is still a neat script OP! I was looking for something like this when installing Go for the first time and was contemplating between goenv, gvm, and asdf before settling on brew.
-
Development Containers
Have you tried this? https://github.com/asdf-vm/asdf-nodejs#nvmrc-and-node-versio...
Also lts, lts-hydrogen, etc are available to install I can see when running `asdf list all nodejs`
-
fnm: 🚀 Fast and simple Node.js version manager, built in Rust
How does this compare to nvm or asdf?
-
M1 keeps changing Ruby 2.5.1 to 3.0
I'm not too familiar with installing Ruby on Mac, but you could try using a ruby version manager (like rbenv or asdf).
-
ASDF: Automatic Management of Multiple Versions
For more information, or if you need help on this awesome tool, don’t hesitate to head over to asdf-vm.com. Also, feel free to star the GitHub Repository of asdf to support the team behind this project. 😉
-
[Ubuntu] How to install a newer version of Node than the one provided by apt?
nvm was adding a huge delay to my shell startup and starting node. There are faster ones out there like n https://github.com/tj/n or fnm https://github.com/Schniz/fnm I use fnm there are also similar tools that work with multiple languages like asdf https://github.com/asdf-vm/asdf
What are some alternatives?
nixos-beginners-handbook - The missing handbook for NixOS beginners
SDKMan - The SDKMAN! Command Line Interface
impermanence - Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
nodenv - Manage multiple NodeJS versions.
star-history - The missing star history graph of GitHub repos - https://star-history.com
volta - Volta: JS Toolchains as Code. ⚡
aconfmgr - A configuration manager for Arch Linux
asdf-postgres - asdf plugin for Postgres
nixpkgs-config - ~/.config/nixpkgs
n-install - Installs n, the Node.js version manager, without needing to install Node.js first: curl -L https://bit.ly/n-install | bash
digga - A flake utility library to craft shell-, home-, and hosts- environments.
asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more