nix: fix detecting install type in Docker
Otherwise build fails in a Docker container for Desktop: ``` + make status-go Building: status-go Unknown Nix installtion type! Unknown Nix installtion type! make[1]: *** [Makefile:223: statusgo-shared-library] Error 1 make: *** [Makefile:432: vendor/status-go/build/bin/libstatus.so] Error 2 ``` Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
c57c8aabc4
commit
9509fddd40
|
@ -27,6 +27,7 @@ nix_install_type() {
|
||||||
if [[ "$(os_name)" =~ NixOS ]]; then
|
if [[ "$(os_name)" =~ NixOS ]]; then
|
||||||
echo "nixos"
|
echo "nixos"
|
||||||
else
|
else
|
||||||
|
USER=$(id -un) # Missing in Docker.
|
||||||
case "${NIX_STORE_DIR_GROUP}" in
|
case "${NIX_STORE_DIR_GROUP}" in
|
||||||
"nixbld") echo "multi";;
|
"nixbld") echo "multi";;
|
||||||
"30000") echo "multi";;
|
"30000") echo "multi";;
|
||||||
|
|
Loading…
Reference in New Issue