fakeroot: fix tests eval

Without the change `tests` attribute fails to eval as:

    $ nix build --no-link -f. fakeroot.tests
       error: attribute 'name' missing
This commit is contained in:
Sergei Trofimovich 2023-12-29 19:24:33 +00:00
parent 01962add7e
commit ce228ed6bd

View File

@ -56,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
passthru = {
tests = {
version = testers.testVersion {
package = finalAttrs;
package = finalAttrs.finalPackage;
};
# A lightweight *unit* test that exercises fakeroot and fakechroot together:
nixos-etc = nixosTests.etc.test-etc-fakeroot;