Skip to content

Commit

Permalink
use flake inptus for holo-nixpkgs and nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Sep 5, 2024
1 parent 38b1036 commit d1663a7
Show file tree
Hide file tree
Showing 3 changed files with 742 additions and 33 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build-hds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,21 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.HOLO_NIXPKGS_READ_KEY }}
extra-conf: |
netrc-file = /etc/nix/netrc
# trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ=
# substituters = https://cache.holo.host https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.nixos.org/
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: "download holo-nixpkgs tag"
run: |
set -eou pipefail
curl -v -L \
--fail-with-body \
-H "Authorization: Bearer ${{ secrets.HOLO_NIXPKGS_READ_KEY }}" \
https://api.github.com/repos/holo-host/holo-nixpkgs/tarball/${{ inputs.holo-nixpkgs-tag }} | \
tar -xz --strip-components=1 --
nix flake update holo-nixpkgs --override-input holo-nixpkgs github:Holo-Host/holo-nixpkgs/${{ inputs.holo-nixpkgs-tag }}
- name: "build holo-dev-server"
if: ${{ matrix.build-config.native }}
run: |
nix build -vL \
--impure \
--out-link holo-dev-server \
'.#legacyPackages.${{ matrix.build-config.system }}.holo-dev-server-bin'
Expand Down
Loading

0 comments on commit d1663a7

Please sign in to comment.