diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-02-14 16:42:03 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-02-26 22:32:58 +0100 |
commit | 17117cf5658c107df9f7ffdda1999c668ea67ecc (patch) | |
tree | 1cb093a9c8534d033914f44faaafe03fc92c8dd1 /lib/tests | |
parent | 31c53f104be7c9b598149f3eaaadeee36caf9e6f (diff) |
lib flake: Fix version
Manually tested with nix-repl> :lf path:lib nix-repl> lib.version
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/test-with-nix.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tests/test-with-nix.nix b/lib/tests/test-with-nix.nix index fd2e7532e697c..9bc160a4682ad 100644 --- a/lib/tests/test-with-nix.nix +++ b/lib/tests/test-with-nix.nix @@ -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 |