diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-06-13 10:22:06 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-06-13 10:22:06 +0200 |
commit | 144018541b20a0aa74ce32120b3a27660fab93dd (patch) | |
tree | 78b9706e044d023a6d780cb895c8196e8fb7e82d /lib/tests | |
parent | 18c7f6237f92ef5ef9d7cf106ec2ffb72af336fc (diff) | |
download | nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.tar nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.tar.gz nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.tar.bz2 nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.tar.lz nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.tar.xz nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.tar.zst nixpkgs-144018541b20a0aa74ce32120b3a27660fab93dd.zip |
lib.systems.equals: Ignore all function attributes reflectively
Co-authored-by: Artturi <Artturin@artturin.com>
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/systems.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/systems.nix b/lib/tests/systems.nix index 082b3549086..617fb0d18b1 100644 --- a/lib/tests/systems.nix +++ b/lib/tests/systems.nix @@ -69,7 +69,7 @@ lib.runTests ( let modified = assert origValue != arbitraryValue; lib.systems.elaborate "x86_64-linux" // { ${platformAttrName} = arbitraryValue; }; - arbitraryValue = "<<modified>>"; + arbitraryValue = x: "<<modified>>"; in { expr = lib.systems.equals (lib.systems.elaborate "x86_64-linux") modified; expected = { |