mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
pkgs: update toolchain and nixpkgs for 21.05
This commit is contained in:
parent
97fdc4c6b2
commit
9fcce0d7df
3 changed files with 21 additions and 30 deletions
|
|
@ -1,18 +1,23 @@
|
|||
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
{ config, libjpeg, path }:
|
||||
{ config, path }:
|
||||
|
||||
let
|
||||
loadNixpkgs = import ../lib/load-nixpkgs.nix;
|
||||
|
||||
overlayJpegNoStatic = self: super: {
|
||||
inherit libjpeg;
|
||||
};
|
||||
|
||||
crossSystem = {
|
||||
config = "${config.build.arch}-unknown-linux-android";
|
||||
sdkVer = "24";
|
||||
ndkVer = "18b";
|
||||
ndkVer = "21";
|
||||
|
||||
# that one is cool because it could make its way on-device one day,
|
||||
# but it currently isn't static-friendly:
|
||||
# sdkVer = "30";
|
||||
# libc = "bionic";
|
||||
# useAndroidPrebuilt = false;
|
||||
# useLLVM = true;
|
||||
|
||||
# use that one instead
|
||||
sdkVer = "29";
|
||||
useAndroidPrebuilt = true;
|
||||
};
|
||||
in
|
||||
|
|
@ -25,7 +30,6 @@ in
|
|||
|
||||
crossOverlays = [
|
||||
(import "${path}/pkgs/top-level/static.nix")
|
||||
overlayJpegNoStatic
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,29 +1,16 @@
|
|||
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
let
|
||||
defaultNixpkgsArgs = {
|
||||
config = { };
|
||||
overlays = [
|
||||
(self: super: {
|
||||
gdb = super.gdb.override {
|
||||
# actual default value of safePaths, but `lib` does not exist when cross-compiling:
|
||||
# [
|
||||
# # $debugdir:$datadir/auto-load are whitelisted by default by GDB
|
||||
# "$debugdir" "$datadir/auto-load"
|
||||
# # targetPackages so we get the right libc when cross-compiling and using buildPackages.gdb
|
||||
# targetPackages.stdenv.cc.cc.lib
|
||||
# ]
|
||||
safePaths = [ "$debugdir" "$datadir/auto-load" ];
|
||||
};
|
||||
})
|
||||
];
|
||||
overlays = [ ];
|
||||
};
|
||||
|
||||
# head of nixos-20.09 as of 2020-11-07
|
||||
# head of nixos-21.05 as of 2021-06-24
|
||||
# note: when updating nixpkgs, update store paths of proot-termux in modules/environment/login/default.nix
|
||||
pinnedPkgsSrc = builtins.fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/d105075a1fd870b1d1617a6008cb38b443e65433.tar.gz";
|
||||
sha256 = "1jcs44wn0s6mlf2jps25bvcai1rij9b2dil6zcj8zqwf2i8xmqjh";
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/0b8b127125e5271f5c8636680b6fe274844aaa9d.tar.gz";
|
||||
sha256 = "1rjb1q28ivaf20aqj3v60kzjyi5lqb3krag0k8wwjqch45ik2f86";
|
||||
};
|
||||
in
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue