devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Provide devenv binary install for other package managers

Open pksunkara opened this issue 1 year ago • 7 comments

In some setups, we would want to install devenv directly from existing package managers. Therefore, please support:

  • https://aur.archlinux.org (devenv, devenv-bin)
  • https://brew.sh (it allows distributing binary)

Especially a binary install would be very helpful to quickly get started.

pksunkara avatar Sep 16 '24 09:09 pksunkara

Could you open package requests in repos?

domenkozar avatar Sep 17 '24 08:09 domenkozar

Could you open package requests in repos?

I am sorry, what do you mean by that?

pksunkara avatar Sep 17 '24 09:09 pksunkara

@pksunkara this doesn't make much sense as the devenv binary has a runtime dependency on the presence on the Nix package manager. You will always to have to install Nix as well, at which point you might as well use it for getting the binary.

thenonameguy avatar Sep 17 '24 09:09 thenonameguy

@thenonameguy Your argument is talking about extremes. Please don't force people, especially programmers.

  1. In some CI setups, you will have to configure your bin paths to point to nix profile before using devenv. We should allow people to skip that step by supporting this.
  2. What about the people who want to use devenv for projects but do not want to completely move their entire system over to the Nix ecosystem? They would still want to install their system tools using their preferred package managers.

IMHO, adding this support is not costly and is a good middle ground to allow the end users a variety of options.

FWIW, https://www.jetify.com/devbox support this.

pksunkara avatar Sep 17 '24 09:09 pksunkara

Screenshot 2024-09-17 at 11 46 13

The Devbox binary supports installing Nix when invoked. Devenv does not have this feature at the moment. If it gets added, then we could achieve feature parity and complete this task, which I support by the way :)

Adding devenv to package managers as-is would just lead to users getting nix not found on $PATH errors, which goes against the original intent of providing a seamless experience for users who are not familiar with the Nix ecosystem.

thenonameguy avatar Sep 17 '24 09:09 thenonameguy

Adding devenv to package managers as-is would just lead to users getting nix not found on $PATH errors

  • In aur, the package should depend on arch linux's nix.
  • In homebrew, the install step can check for nix and fail to install if not present.

This kind of issue is already solved in package managers.

pksunkara avatar Sep 17 '24 09:09 pksunkara

Could you open package requests in repos?

@domenkozar Can I please get more information on what you mean by this?

pksunkara avatar Jan 23 '25 01:01 pksunkara