From 98336c223b7778053bf8136c2f269ce4dfec29f5 Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Sun, 15 Nov 2020 11:54:15 -0500 Subject: pkgs-lib: allow paths in TOML, YAML and JSON Paths get automatically added to the store. The INI generator currently chokes on paths, so it is not supported for now. --- pkgs/pkgs-lib/tests/formats.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/pkgs-lib/tests') diff --git a/pkgs/pkgs-lib/tests/formats.nix b/pkgs/pkgs-lib/tests/formats.nix index 2c117e29e9ba9..679fde0152281 100644 --- a/pkgs/pkgs-lib/tests/formats.nix +++ b/pkgs/pkgs-lib/tests/formats.nix @@ -38,6 +38,7 @@ in runBuildTests { str = "foo"; attrs.foo = null; list = [ null null ]; + path = ./formats.nix; }; expected = '' { @@ -52,6 +53,7 @@ in runBuildTests { null ], "null": null, + "path": "${./formats.nix}", "str": "foo", "true": true } @@ -67,6 +69,7 @@ in runBuildTests { str = "foo"; attrs.foo = null; list = [ null null ]; + path = ./formats.nix; }; expected = '' { @@ -80,6 +83,7 @@ in runBuildTests { null ], "null": null, + "path": "${./formats.nix}", "str": "foo", "true": true } -- cgit 1.4.1