summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2021-09-14 18:55:17 +0200
committerDaiderd Jordan <daiderd@gmail.com>2021-09-15 20:10:56 +0200
commitd2bbe72e1812a1bc23570be2e65d23a0af456515 (patch)
treea3f0fc8dacc685bc6201dca6c746979db7b96a7c /.github/workflows
parentd4deef8194199f1e63b10ee067b5114443497716 (diff)
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.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 5b9214a..c44a317 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -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 .