mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
add x86_64 arch
This commit is contained in:
parent
463e0f82a6
commit
d72ab2a167
17 changed files with 89 additions and 40 deletions
|
|
@ -41,7 +41,10 @@ let
|
|||
user.shell = "${initialPackageInfo.bash}/bin/bash";
|
||||
|
||||
build = {
|
||||
inherit arch;
|
||||
arch =
|
||||
if arch != null
|
||||
then arch
|
||||
else nixpkgs.lib.strings.removeSuffix "-linux" builtins.currentSystem;
|
||||
|
||||
channel = {
|
||||
nixpkgs = urlOptionValue nixpkgsChannelURL "NIXPKGS_CHANNEL_URL";
|
||||
|
|
|
|||
|
|
@ -25,7 +25,14 @@ stdenv.mkDerivation {
|
|||
|
||||
src = builtins.fetchurl {
|
||||
url = "https://nixos.org/releases/nix/nix-2.20.5/nix-2.20.5-${config.build.arch}-linux.tar.xz";
|
||||
sha256 = "sha256:168wjfj3xsc8hq1y6cq59iipjp1g9hmj4n5wdn9c47ad9gbc9cvh";
|
||||
sha256 =
|
||||
let
|
||||
archShas = {
|
||||
aarch64 = "sha256:168wjfj3xsc8hq1y6cq59iipjp1g9hmj4n5wdn9c47ad9gbc9cvh";
|
||||
x86_64 = "sha256:0dax9n562ldj53ap6lz0cwwsfx4d8j1267g9s6lg3zs237yyzw61";
|
||||
};
|
||||
in
|
||||
archShas.${config.build.arch};
|
||||
};
|
||||
|
||||
PROOT_NO_SECCOMP = 1; # see https://github.com/proot-me/PRoot/issues/106
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue