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

Produce Nix expression for easy-install in NixOS #245

Open
tomberek opened this issue Feb 7, 2015 · 9 comments
Open

Produce Nix expression for easy-install in NixOS #245

tomberek opened this issue Feb 7, 2015 · 9 comments
Labels
install-config Installation/configuration issues

Comments

@tomberek
Copy link

tomberek commented Feb 7, 2015

No description provided.

@paulproteus
Copy link
Collaborator

Hi @tomberek ! Thanks for filing this.

I don't know anyone in the Sandstorm community yet who knows Nix... but maybe you do? I'd love to help you with this, if you're interested.

@paulproteus
Copy link
Collaborator

If you don't have the time or interest, I'm also totally OK with leaving this open, as a signal to others that we welcome their contribution!

@tomberek
Copy link
Author

I've got a few other projects. I'll try to get to this some time. I would
want to make a package and a service configuration.

On Sat, Feb 7, 2015 at 2:42 PM, Asheesh Laroia notifications@github.com
wrote:

If you don't have the time or interest, I'm also totally OK with leaving
this open, as a signal to others that we welcome their contribution!


Reply to this email directly or view it on GitHub
#245 (comment)
.

@paulproteus
Copy link
Collaborator

paulproteus commented Feb 10, 2015 via email

@edrex
Copy link

edrex commented Feb 15, 2016

it appears that NixOS kernels are built with CONFIG_USER_NS

@zimbatm
Copy link

zimbatm commented Apr 19, 2016

I had a quick try but the Makefile doesn't follow the common patterns. It tries to download the dependencies with git and doesn't provide a fallback where libraries are provided by the system. Because Nix uses a sandbox it doesn't allow network access during build time. It also makes the build non-reproducible because each git remote can change at any time and the dependencies are not pinned.

I tried to package ekam which is sandstorm's custom make replacement which also has similar issues.

My WIP is available at https://github.com/zimbatm/nixpkgs/tree/sandstorm

@tomberek
Copy link
Author

I've found this to be a common problem with integrating some build systems
with Nix. It becomes some work to go about pinning all the dependencies
into Nix. Sometimes I end up simply creating an impure Nix expression to
build the package for me.

On Tue, Apr 19, 2016 at 4:39 PM, zimbatm notifications@github.com wrote:

I had a quick try but the Makefile doesn't follow the common patterns. It
tries to download the dependencies with git and doesn't provide a fallback
where libraries are provided by the system. Because Nix uses a sandbox it
doesn't allow network access during build time. It also makes the build
non-reproducible because each git remote can change at any time and the
dependencies are not pinned.

I tried to package ekam which is sandstorm's custom make replacement which
also has similar issues.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#245 (comment)

@garrison
Copy link
Contributor

It also makes the build non-reproducible because each git remote can change at any time and the dependencies are not pinned.

I don't believe this is accurate. The dependencies fetched by git are pinned by git-submodule (see e.g. 0dbe188). The build is probably not reproducible for other, more minor, reasons, however.

@garrison
Copy link
Contributor

Ekam is now in nixpkgs (NixOS/nixpkgs#141064). I have a work-in-progress nix expression to build sandstorm (but it does not yet compile) at https://github.com/garrison/sandstorm-nix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install-config Installation/configuration issues
Projects
None yet
Development

No branches or pull requests

6 participants