From b002fdd89fdf22283e7627b7ea951a614dbf8041 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Mon, 23 Feb 2015 13:52:33 +0300 Subject: [PATCH] buiildFHSEnv: check if multiPkgs is empty Fixes #6486 --- pkgs/build-support/build-fhs-chrootenv/env.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/build-fhs-chrootenv/env.nix b/pkgs/build-support/build-fhs-chrootenv/env.nix index b810adefab16..ee18f86893bb 100644 --- a/pkgs/build-support/build-fhs-chrootenv/env.nix +++ b/pkgs/build-support/build-fhs-chrootenv/env.nix @@ -142,7 +142,7 @@ let cp -rsf ${staticUsrProfileTarget}/lib/32/* lib/ # copy content of multiPaths (32bit libs) - cp -rsf ${staticUsrProfileMulti}/lib/* lib/ + [ -d ${staticUsrProfileMulti}/lib ] && cp -rsf ${staticUsrProfileMulti}/lib/* lib/ # copy content of targetPaths (64bit libs) cp -rsf ${staticUsrProfileTarget}/lib/* lib64/