mirror of
https://github.com/servo/servo.git
synced 2025-06-27 02:23:41 +01:00
add NixOS support to mach and automatically re-launch mach in nix-shell
This commit is contained in:
parent
2cade89ede
commit
8e48b6fd74
2 changed files with 17 additions and 1 deletions
|
@ -383,6 +383,7 @@ def get_linux_distribution():
|
|||
'debian gnu/linux',
|
||||
'fedora',
|
||||
'void',
|
||||
'nixos',
|
||||
]:
|
||||
raise Exception('mach bootstrap does not support %s, please file a bug' % distrib)
|
||||
|
||||
|
@ -398,6 +399,11 @@ def bootstrap(context, force=False, specific=None):
|
|||
elif "linux-gnu" in host_triple():
|
||||
distrib, version = get_linux_distribution()
|
||||
|
||||
if distrib.lower() == 'nixos':
|
||||
print('NixOS does not need bootstrap')
|
||||
print('just run ./mach build')
|
||||
return
|
||||
|
||||
context.distro = distrib
|
||||
context.distro_version = version
|
||||
bootstrapper = LINUX_SPECIFIC_BOOTSTRAPPERS.get(specific, linux)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue