buildFHSUserEnvBubblewrap: allow for non-x86 platforms

This commit is contained in:
Jonathan Ringer 2021-08-07 03:20:36 +00:00
parent 81ccb11016
commit d6915ebb3f
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -22,8 +22,10 @@
# /lib will link to /lib32 # /lib will link to /lib32
let let
is64Bit = stdenv.hostPlatform.parsed.cpu.bits == 64; inherit (stdenv) is64Bit;
isMultiBuild = multiPkgs != null && is64Bit;
# use of glibc_multi is only supported on x86_64-linux
isMultiBuild = multiPkgs != null && stdenv.isx86_64 && stdenv.isLinux;
isTargetBuild = !isMultiBuild; isTargetBuild = !isMultiBuild;
# list of packages (usually programs) which are only be installed for the # list of packages (usually programs) which are only be installed for the