diff options
Diffstat (limited to 'pkgs/build-support/build-fhsenv-chroot/env.nix')
-rw-r--r-- | pkgs/build-support/build-fhsenv-chroot/env.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/build-fhsenv-chroot/env.nix b/pkgs/build-support/build-fhsenv-chroot/env.nix index 6a82435d7067..9f8bc07a94ad 100644 --- a/pkgs/build-support/build-fhsenv-chroot/env.nix +++ b/pkgs/build-support/build-fhsenv-chroot/env.nix @@ -4,6 +4,7 @@ , profile ? "" , targetPkgs ? pkgs: [] , multiPkgs ? pkgs: [] +, nativeBuildInputs ? [] , extraBuildCommands ? "" , extraBuildCommandsMulti ? "" , extraOutputsToInstall ? [] @@ -66,7 +67,7 @@ let # Following XDG spec [1], XDG_DATA_DIRS should default to "/usr/local/share:/usr/share". # In nix, it is commonly set without containing these values, so we add them as fallback. # - # [1] <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html> + # [1] <https://specifications.freedesktop.org/basedir-spec/latest> case ":$XDG_DATA_DIRS:" in *:/usr/local/share:*) ;; *) export XDG_DATA_DIRS="$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}/usr/local/share" ;; @@ -245,6 +246,7 @@ let in stdenv.mkDerivation { name = "${name}-fhs"; + inherit nativeBuildInputs; buildCommand = '' mkdir -p $out cd $out |