Live data from Hacker News

Pkgx – “Run anything” from the creator of brew

pkgx.sh

11–20 of 71 posts

Re: Pkgx – “Run anything” from the creator of brew

#12
post #5

I know I'm a Nix elitist but I really don't understand why people don't just use Nix for all their package management.

Because I don't want to learn another complex DSL just to install some packages. Whether Nix is the promised land or not, Brew works just fine 99% of the time and I have stuff to do.

Re: Pkgx – “Run anything” from the creator of brew

#13
post #7
post #5

I know I'm a Nix elitist but I really don't understand why people don't just use Nix for all their package management.

Probably the EVE Online-like learning curve.

The docs could be better, but it's as easy as:

1. Install Nix from https://nixos.org/download.html

2. Find the package from https://search.nixos.org/packages

3. Start a shell with `nix-shell -p `, have the package available in it

Re: Pkgx – “Run anything” from the creator of brew

#14
post #12
post #5

I know I'm a Nix elitist but I really don't understand why people don't just use Nix for all their package management.

Because I don't want to learn another complex DSL just to install some packages. Whether Nix is the promised land or not, Brew works just fine 99% of the time and I have stuff to do.

Me, too, and also I already have a bunch of brew packages which I know are well maintained. So, switch to using both? Uninstall brew packages and install nix versions, verifying they are all maintained over there?

Sorry, no.

Re: Pkgx – “Run anything” from the creator of brew

#16
I literally don't understand the first example. What just happened here? Did pkgx see that I failed to run bun and then just like... installed it and ran it for me? Does that mean on my next prompt I should run `bun` or should I run `pkgx` again?

  $ bun
  command not found: bun
  ^^ type `pkgx` to run that
  
  $ pkgx
  running `bun`…
  
  Bun: a fast JavaScript runtime, package manager, bundler and test runner.
  # …

Re: Pkgx – “Run anything” from the creator of brew

#17
post #16

I literally don't understand the first example. What just happened here? Did pkgx see that I failed to run bun and then just like... installed it and ran it for me? Does that mean on my next prompt I should run `bun` or should I run `pkgx` again? $ bun command not found: bun ^^ type `pkgx` to run that $ pkgx running `bun`… Bun: a fast JavaScript runtime, package manager, bundler and test runner. # …

Based on the examples that follow, it seems like pkgx tracks shell history so it can default to the last command if and only if it doesn't exist on $PATH.

Re: Pkgx – “Run anything” from the creator of brew

#18
post #12
post #5

I know I'm a Nix elitist but I really don't understand why people don't just use Nix for all their package management.

Because I don't want to learn another complex DSL just to install some packages. Whether Nix is the promised land or not, Brew works just fine 99% of the time and I have stuff to do.

You don't need to learn the DSL to use Nix as a package manager.

Re: Pkgx – “Run anything” from the creator of brew

#19
I have no idea who this appeals to, or why. If I want something, I want it to be installed and available, not mysteriously cached. If I want multiple versions of something, there are tools like asdf and rtx.

This feels like a solution for a problem that doesn’t exist.

Post reply on HN