1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-08 02:43:54 +02:00

Add a utility function for creating/registering a simple flake

This commit is contained in:
Eelco Dolstra 2024-11-20 18:51:23 +01:00
parent e1cb905aca
commit 4cafea7c7b
5 changed files with 14 additions and 25 deletions

View file

@ -4,15 +4,9 @@ source ./common.sh
TODO_NixOS
requireGit
createFlake1
flake1Dir=$TEST_ROOT/flake1
lockfileSummaryFlake=$TEST_ROOT/lockfileSummaryFlake
createGitRepo "$flake1Dir" ""
createSimpleGitFlake "$flake1Dir"
nix registry add --registry "$registry" flake1 "git+file://$flake1Dir"
createGitRepo "$lockfileSummaryFlake" "--initial-branch=main"
# Test that the --commit-lock-file-summary flag and its alias work