From f30dbd05fe0f81623758f35db600bf1a7ad407d7 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Wed, 2 Mar 2022 00:34:21 +0100 Subject: [PATCH] buildDhallDirectoryPackage: Stringify src for documentationRoot (#162401) The `src` is supposed to be a path, but when `documentationRoot` is provided with a path, it errors with: generators.mkValueStringDefault: this value is not supported: "" Making it a string fixes this error. --- .../interpreters/dhall/build-dhall-directory-package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/dhall/build-dhall-directory-package.nix b/pkgs/development/interpreters/dhall/build-dhall-directory-package.nix index 7fe1b46e3a5..f7c730c9277 100644 --- a/pkgs/development/interpreters/dhall/build-dhall-directory-package.nix +++ b/pkgs/development/interpreters/dhall/build-dhall-directory-package.nix @@ -24,7 +24,6 @@ lib.makePackageOverridable code = "${src}/${file}"; } - // lib.optionalAttrs document { documentationRoot = src; } + // lib.optionalAttrs document { documentationRoot = "${src}"; } ) ) -