Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not require global nix installation #75

Open
Profpatsch opened this issue Mar 11, 2019 · 6 comments
Open

Do not require global nix installation #75

Profpatsch opened this issue Mar 11, 2019 · 6 comments
Labels
P3 minor: not priorized type: feature request

Comments

@Profpatsch
Copy link
Contributor

Based on the discussion in #54, we should enable rules_nixpkgs to use a local installation of nix that is bound to the bazel workspace somehow.

Other relevant issues: NixOS/nix#1973, bazelbuild/bazel#6994

@reddaly
Copy link

reddaly commented Oct 12, 2022

What makes this hard?

For my use case, all I want to use nix for is to pull in the pg_dump binary from postgresql. This binary is needed by a Go library that dumps the schema of a database.

@facundominguez
Copy link
Member

facundominguez commented Apr 15, 2024

Hello! Someone shared a contribution to clodl (tweag/clodl#48) to make it work with a non-global nix installation.

I don't have much of an opinion on how it should be implemented, but as a user of rules_nixpgs I would prefer for it to be handled upstream (I'm the typical user, aren't I? 😛).

If you have a clue, your input would be welcome. Is this something possible and desirable to do in rules_nixpkgs?

@aherrmann
Copy link
Member

I've added a comment to the clodl PR tweag/clodl#48 (comment)

@filmil
Copy link

filmil commented Apr 17, 2024

Hello! Someone shared a contribution to clodl (tweag/clodl#48) to make it work with a non-global nix installation.

Hi. I'm that someone. :)

This now seems to work on Linux and does not seem too onerous, see tweag/clodl#48 (comment) for details.
While the contribution is for clodl this should work on any other project that uses rules_nixpkgs.

Sorry folks, mac is not supported, because nix-portable, which is the main workhorse, doesn't seem to support mac.
And that showstopper may be hiding more issues.

Do give it a test drive on Linux if so inclined.
It's not overly user-friendly at the moment, so I ask for your patience if you do decide to try it.
There are some rough edges that I am aware of, but do send your findings.

@uri-canva
Copy link
Contributor

Sorry folks, mac is not supported, because nix-portable, which is the main workhorse, doesn't seem to support mac.
And that showstopper may be hiding more issues.

https://github.com/nixie-dev/nixie exists for macOS, but I haven't tried it. Not sure if it's a viable path forward, or if it's not, if it can help shake out some of those hidden issues, though it might not be worth addressing any hidden issues if there's no viable path forward on macOS.

@filmil
Copy link

filmil commented May 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 minor: not priorized type: feature request
Projects
None yet
Development

No branches or pull requests

6 participants