1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00

use current branch as darwin input for flakes

Overriding the registry was supposed to handle this but it seems the
behaviour changed at some point or never worked as intended if an url is
defined for the input.
This commit is contained in:
Daiderd Jordan 2021-09-14 18:55:17 +02:00
parent d4deef8194
commit d2bbe72e18
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -52,10 +52,9 @@ jobs:
export NIX_PATH=$HOME/.nix-defexpr/channels
nix-shell -A installer
- run: |
nix registry add darwin $PWD
nix build ./modules/examples#darwinConfigurations.simple.system
nix build ./modules/examples#darwinConfigurations.simple.system --override-input darwin .
- run: |
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple
./result/sw/bin/darwin-rebuild switch --flake ./modules/examples#simple --override-input darwin .
- run: |
. /etc/static/bashrc
darwin-rebuild build --flake ./modules/examples#simple
darwin-rebuild build --flake ./modules/examples#simple --override-input darwin .