Skip to content

Commit

Permalink
add cachix as a nix substituter
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrichter committed May 1, 2024
1 parent 01f2d23 commit 267f995
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ If you have Nix, getting a build of qemu with the Cannoli patches is just:
nix --experimental-features 'nix-command flakes' build
```

If desired, you may also skip building and download pre-built binaries:

```
do you want to allow configuration setting 'extra-substituters' to be set to 'https://cannoli.cachix.org' (y/N)? y
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to 'cannoli.cachix.org-1:nFKY7lRczFkkHacy6/OlfmpOU22MeEiDo90YV0QkVoQ=' (y/N)? y
```

The supported emulators will be in ./result/bin after a few minutes of compiling.

There's also a nix devshell, which you can use to populate a temporary shell
Expand Down
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
description = "Cannoli development shell";

nixConfig = {
extra-substituters = ["https://cannoli.cachix.org"];
extra-trusted-public-keys = ["cannoli.cachix.org-1:nFKY7lRczFkkHacy6/OlfmpOU22MeEiDo90YV0QkVoQ="];
};

inputs = {
# Use the rolling-release cycle of nixpkgs for most tools
# flake.lock will pin this to a fixed version, update with "nix flake update"
Expand Down

0 comments on commit 267f995

Please sign in to comment.