lib flake: Fix version

Manually tested with

nix-repl> :lf path:lib
nix-repl> lib.version
This commit is contained in:
Robert Hensing
2024-02-14 16:42:03 +01:00
parent 31c53f104b
commit 17117cf565
3 changed files with 11 additions and 1 deletions

View File

@@ -49,6 +49,15 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" {
nix-store --init
# nixpkgs/lib/.version is a copy of nixpkgs/.version, so that the lib
# subtree is valid in isolation (except for the tests, but that's ok)
cp ${../../.version} nixpkgs-.version
cp ${../.version} nixpkgs-lib-.version
diff -U3 nixpkgs-.version nixpkgs-lib-.version || {
echo '<nixpkgs/.version> and <nixpkgs/lib/.version> must match.'
exit 1
}
cp -r ${../.} lib
echo "Running lib/tests/modules.sh"
bash lib/tests/modules.sh