4 ms·
Hey, Maybe nix is not for you. I'm not well versed with nix packages and only use the basics. Your answer on how to pin this package hasn't been answered good
by rvanlaar 5y ago
Hey,
Maybe nix is not for you. I'm not well versed with nix packages and only use the basics.
Your answer on how to pin this package hasn't been answered good enough for you because it takes work to pin packages and it isn't as trivial as on ubuntu. To paraphrase it's a great place to live but not to visit.
Some of my friends are active in the NIX community. They mentioned that it was around as hard as learning haskell. One of them only grokked nix after he read nix pills [1].
I think nix has good concepts and in theory is the package manager I would like to use. In practice it isn't that.
Personally, I run ubuntu and use nix packages for three things:
- quickly test a program without needing to install it system wide via apt-get
`nix-shell -p appname`
- together with direnv for the dependencies of CPP projects I work on and
- installing commandline tools packages
[1] https://nixos.org/guides/nix-pills/ https://nixos.org/guides/nix-pills/
- dmitriid 5y ago> it isn't as trivial as on ubuntu > Personally, I run ubuntu What does Ubuntu have to do with it? Here's a quote from the article: --- start quote --- Ditch your version manager September 17, 2021 • 7 min read You probably use a variety of tools to manage your Ruby, Node, Python, Elixir versions, such as rvm, rbenv, nvm, or asdf. They all work reasonably well, right? Well, not quite. ... My ideal dependency manager would allow me to specify each and every dependency that is required to work on my projects. It should be easily reproducible, declarative and easy to upgrade. --- end quote --- To this end, the author proposes to ditch rvm, rbenv, nvm etc. and go for nix. Here's the entirety of what I need to do to pin my ruby version: rvm install 2.1.1 rvm use 2.1.1 That is it. I've yet to see anything that approaches this in nix. We are talking about reproducible builds, aren't we?