mirror of
https://github.com/status-im/status-react.git
synced 2025-01-18 15:01:28 +00:00
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
1d1eae13a9
commit
b5962fd83a
@ -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…
x
Reference in New Issue
Block a user