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

Offer cachix binary cache via flake.nix #966

Merged
merged 1 commit into from
Nov 28, 2022
Merged

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Nov 23, 2022

I noticed that helix does it:

https://github.com/helix-editor/helix/blob/master/flake.nix#L176

and wanted to try it.

There are some problems with it though:

  • It asks on nix develop if you want use these settings and if you want to remember them. Not a problem on it's own but ...
  • If you are using direnv it will just get stuck, as direnv doesn't allow stdin from the subcommands it starts (or something like that). You have to ctrl+c it, and then run nix develop manually and make it remember settings. Papercut.
  • On my system I get warning: ignoring untrusted substituter 'https://fedimint.cachix.org' and I'm not sure what is wrong.

I noticed that helix does it:

https://github.com/helix-editor/helix/blob/master/flake.nix#L176

and wanted to try it.

There are some problems with it though:

* It asks on `nix develop` if you want use these settings and if you
  want to remember them. Not a problem on it's own but ...
* If you are using `direnv` it will just get stuck, as direnv doesn't
  allow stdin from the subcommands it starts (or something like that).
  You have to ctrl+c it, and then run `nix develop` manually and make
  it remember settings. Papercut.
* On my system I get `warning: ignoring untrusted substituter 'https://fedimint.cachix.org'`
  and I'm not sure what is wrong.
Copy link
Contributor

@elsirion elsirion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked for me, I like the idea (and think I actually had it in a PR of mine once :P).

There's a potential problem I read about on the nix-bitcoin matrix channel that apparently rocksdb might build with all the supported CPU features of the build host and then not work on other machines.

Proceed if you think it's a good trade-off.

@dpc dpc merged commit 1a87333 into fedimint:master Nov 28, 2022
@dpc dpc deleted the cachix-subst branch November 28, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants