Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from cspr-rad/add-cachix
Browse files Browse the repository at this point in the history
Add cachix
  • Loading branch information
marijanp authored Feb 6, 2024
2 parents fabdf68 + 25b2d4b commit 7acff27
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v12
with:
name: risc0pkgs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: System Info
run: |
Expand Down
13 changes: 12 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
description = "A collection of risc0 related packages";

nixConfig = {
extra-substituters = [
"https://risc0pkgs.cachix.org"
];
extra-trusted-public-keys = [
"risc0pkgs.cachix.org-1:EY5UazX0/Q7hGCm6xQSgKX6UkpzyOf07pxjfhhRK7kE="
];
};

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};

outputs = { self, nixpkgs, ... }:
let
eachSystem = systems: f:
Expand Down
18 changes: 13 additions & 5 deletions templates/default/flake.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
description = "risc0 project template";

nixConfig = {
extra-substituters = [
"https://risc0pkgs.cachix.org"
];
extra-trusted-public-keys = [
"risc0pkgs.cachix.org-1:EY5UazX0/Q7hGCm6xQSgKX6UkpzyOf07pxjfhhRK7kE="
];
};

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
risc0pkgs = {
url = "github:cspr-rad/risc0pkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.follows = "risc0pkgs/nixpkgs";
risc0pkgs.url = "github:cspr-rad/risc0pkgs";
};

outputs = { self, nixpkgs, risc0pkgs }:
let
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
Expand Down

0 comments on commit 7acff27

Please sign in to comment.