Skip to content

Commit

Permalink
update inputs and copyrights to 24.05
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Sosedkin <[email protected]>
  • Loading branch information
taranarmo and t184256 committed Jul 7, 2024
1 parent e0216d3 commit 4ba0a9f
Show file tree
Hide file tree
Showing 33 changed files with 77 additions and 74 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/emulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
steps:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup cachix
uses: cachix/cachix-action@v14
with:
name: nix-on-droid
- name: Configure Nix magic cache
uses: DeterminateSystems/magic-nix-cache-action@main

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for example:
{
environment.packages = [ pkgs.vim ];
system.stateVersion = "23.11";
system.stateVersion = "24.05";
}
```

Expand All @@ -67,7 +67,7 @@ An alternative location is `~/.config/nixpkgs/config.nix` with the key
{
environment.packages = [ pkgs.vim ];
system.stateVersion = "23.11";
system.stateVersion = "24.05";
};
}
```
Expand All @@ -80,7 +80,7 @@ To enable `home-manager` you simply need to follow the instructions already prov

1. Add `home-manager` channel:
```sh
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
nix-channel --update
```
2. Configure `home-manager`:
Expand All @@ -89,15 +89,15 @@ To enable `home-manager` you simply need to follow the instructions already prov
{
# Read Nix-on-Droid changelog before changing this value
system.stateVersion = "23.11";
system.stateVersion = "24.05";
# insert Nix-on-Droid config
home-manager.config =
{ pkgs, ... }:
{
# Read home-manager changelog before changing this value
home.stateVersion = "23.11";
home.stateVersion = "24.05";
# insert home-manager config
};
Expand Down Expand Up @@ -181,10 +181,10 @@ A minimal example could look like the following:
description = "Minimal example of Nix-on-Droid system config.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-23.11";
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
4 changes: 2 additions & 2 deletions docs/manual.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
<programlisting language="nix">
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";

nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-23.11";
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
nixpkgs.url = "github:NixOS/nixpkgs";

# for bootstrap zip ball creation and proot-termux builds, we use a fixed version of nixpkgs to ease maintanence.
# head of nixos-23.11 as of 2024-02-17
# head of nixos-24.05 as of 2024-07-06
# note: when updating nixpkgs-for-bootstrap, update store paths of proot-termux in modules/environment/login/default.nix
nixpkgs-for-bootstrap.url = "github:NixOS/nixpkgs/1d1817869c47682a6bee85b5b0a6537b6c0fba26";
nixpkgs-for-bootstrap.url = "github:NixOS/nixpkgs/49ee0e94463abada1de470c9c07bfc12b36dcf40";

home-manager = {
url = "github:nix-community/home-manager";
Expand Down
4 changes: 2 additions & 2 deletions modules/build/initial-build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
with lib;

let
defaultNixpkgsBranch = "nixos-23.11";
defaultNixOnDroidBranch = "release-23.11";
defaultNixpkgsBranch = "nixos-24.05";
defaultNixOnDroidBranch = "release-24.05";

defaultNixpkgsChannel = "https://nixos.org/channels/${defaultNixpkgsBranch}";
defaultNixOnDroidChannel = "https://github.com/nix-community/nix-on-droid/archive/${defaultNixOnDroidBranch}.tar.gz";
Expand Down
4 changes: 2 additions & 2 deletions modules/environment/login/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ in
prootStatic =
let
crossCompiledPaths = {
aarch64-linux = "/nix/store/7w09z1kw62wg7nv3q3z2p6kxf1ihk178-proot-termux-static-aarch64-unknown-linux-android-unstable-2023-11-11";
x86_64-linux = "/nix/store/i6jppi627sakbgm5x2a8jjdfyv8571zc-proot-termux-static-x86_64-unknown-linux-android-unstable-2023-11-11";
aarch64-linux = "/nix/store/phj07a1pg3vwqdhq4cxd1dac4zc28mnc-proot-termux-static-aarch64-unknown-linux-android-unstable-2023-11-11";
x86_64-linux = "/nix/store/kg1bfwprdlf28fqd7ml86fywshkvcbhl-proot-termux-static-x86_64-unknown-linux-android-unstable-2023-11-11";
};
in
"${crossCompiledPaths.${targetSystem}}";
Expand Down
6 changes: 3 additions & 3 deletions modules/environment/login/nix-on-droid.nix.default
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
environment.etcBackupExtension = ".bak";

# Read the changelog before changing this value
system.stateVersion = "23.11";
system.stateVersion = "24.05";

# Set up nix for flakes
#nix.extraOptions = ''
Expand All @@ -41,7 +41,7 @@
#time.timeZone = "Europe/Berlin";

# After installing home-manager channel like
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
# nix-channel --update
# you can configure home-manager in here like
#home-manager = {
Expand All @@ -51,7 +51,7 @@
# { config, lib, pkgs, ... }:
# {
# # Read the changelog before changing this value
# home.stateVersion = "23.11";
# home.stateVersion = "24.05";
#
# # insert home-manager config
# };
Expand Down
2 changes: 1 addition & 1 deletion modules/environment/session-init.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023, see AUTHORS. Licensed under MIT License, see LICENSE.
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.

{ config, lib, pkgs, ... }:

Expand Down
2 changes: 1 addition & 1 deletion modules/upgrade.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023, see AUTHORS. Licensed under MIT License, see LICENSE.
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.

{ config, lib, ... }:

Expand Down
8 changes: 4 additions & 4 deletions overlays/lib/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright (c) 2019-2023, see AUTHORS. Licensed under MIT License, see LICENSE.
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.

{ super }:

let
# head of nixos-23.11 as of 2024-02-17
# head of nixos-24.05 as of 2024-07-06
pinnedPkgsSrc = super.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "1d1817869c47682a6bee85b5b0a6537b6c0fba26";
sha256 = "sha256-sS4AItZeUnAei6v8FqxNlm+/27MPlfoGym/TZP0rmH0=";
rev = "49ee0e94463abada1de470c9c07bfc12b36dcf40";
sha256 = "";
};
in

Expand Down
11 changes: 5 additions & 6 deletions pkgs/cross-compiling/compiler-rt.patch
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
diff --git a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix b/pkgs/d
evelopment/compilers/llvm/16/compiler-rt/default.nix
index 0f15a9e12cde..a32533e5285c 100644
--- a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
+++ b/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
@@ -130,8 +130,8 @@ stdenv.mkDerivation {
diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix
index 7d47436b714f..d30df471e92a 100644
--- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix
+++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix
@@ -155,8 +155,8 @@ stdenv.mkDerivation ({
# The presence of crtbegin_shared has been added and removed; it's possible
# people have added/removed it to get it working on their platforms.
# Try each in turn for now.
Expand Down
22 changes: 11 additions & 11 deletions pkgs/cross-compiling/libunwind.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git a/pkgs/development/compilers/llvm/16/libunwind/default.nix b/pkgs/development/compilers/llvm/16/libunwind/default.nix
index 1b677a7a2c0d..6c16e869a085 100644
--- a/pkgs/development/compilers/llvm/16/libunwind/default.nix
+++ b/pkgs/development/compilers/llvm/16/libunwind/default.nix
@@ -49,6 +49,8 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ninja python3 ];

diff --git a/pkgs/development/compilers/llvm/common/libunwind/default.nix b/pkgs/development/compilers/llvm/common/libunwind/default.nix
index 515914e6acb6..ca53043bd278 100644
--- a/pkgs/development/compilers/llvm/common/libunwind/default.nix
+++ b/pkgs/development/compilers/llvm/common/libunwind/default.nix
@@ -67,6 +67,8 @@ stdenv.mkDerivation (rec {
ninja python3
];
+ LDFLAGS = "-unwindlib=none";
+
cmakeFlags = [
"-DLLVM_ENABLE_RUNTIMES=libunwind"
] ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
cmakeFlags = lib.optional (lib.versionAtLeast release_version "15") "-DLLVM_ENABLE_RUNTIMES=libunwind"
++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";

2 changes: 1 addition & 1 deletion pkgs/cross-compiling/talloc-static.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023, see AUTHORS. Licensed under MIT License, see LICENSE.
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.

{ callPackage
, fetchurl
Expand Down
2 changes: 1 addition & 1 deletion pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let
pkgs = pkgs.lib.mkForce pkgs; # to override ./modules/nixpkgs/config.nix
};

system.stateVersion = "23.11";
system.stateVersion = "24.05";

# Fix invoking bash after initial build.
user.shell = "${initialPackageInfo.bash}/bin/bash";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/proot-termux/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023, see AUTHORS. Licensed under MIT License, see LICENSE.
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.

{ stdenv
, fetchFromGitHub
Expand Down
6 changes: 3 additions & 3 deletions templates/advanced/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
description = "Advanced example of Nix-on-Droid system config with home-manager.";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";

home-manager = {
url = "github:nix-community/home-manager/release-23.11";
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};

nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-23.11";
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
Expand Down
2 changes: 1 addition & 1 deletion templates/advanced/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
# Read the changelog before changing this value
home.stateVersion = "23.11";
home.stateVersion = "24.05";

# insert home-manager config
}
2 changes: 1 addition & 1 deletion templates/advanced/nix-on-droid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
environment.etcBackupExtension = ".bak";

# Read the changelog before changing this value
system.stateVersion = "23.11";
system.stateVersion = "24.05";

# Set up nix for flakes
nix.extraOptions = ''
Expand Down
6 changes: 3 additions & 3 deletions templates/home-manager/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
description = "Minimal example of Nix-on-Droid system config with home-manager.";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";

home-manager = {
url = "github:nix-community/home-manager/release-23.11";
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};

nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-23.11";
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
Expand Down
4 changes: 2 additions & 2 deletions templates/home-manager/nix-on-droid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
environment.etcBackupExtension = ".bak";

# Read the changelog before changing this value
system.stateVersion = "23.11";
system.stateVersion = "24.05";

# Set up nix for flakes
nix.extraOptions = ''
Expand All @@ -49,7 +49,7 @@
{ config, lib, pkgs, ... }:
{
# Read the changelog before changing this value
home.stateVersion = "23.11";
home.stateVersion = "24.05";

# insert home-manager config
};
Expand Down
4 changes: 2 additions & 2 deletions templates/minimal/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
description = "Basic example of Nix-on-Droid system config.";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";

nix-on-droid = {
url = "github:nix-community/nix-on-droid/release-23.11";
url = "github:nix-community/nix-on-droid/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
2 changes: 1 addition & 1 deletion templates/minimal/nix-on-droid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
environment.etcBackupExtension = ".bak";

# Read the changelog before changing this value
system.stateVersion = "23.11";
system.stateVersion = "24.05";

# Set up nix for flakes
nix.extraOptions = ''
Expand Down
2 changes: 1 addition & 1 deletion tests/on-device/config-android-integration.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_:

{
system.stateVersion = "23.11";
system.stateVersion = "24.05";
android-integration = {
am.enable = true;
termux-open.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/on-device/config-flake-default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Nix-on-Droid configuration";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
nix-on-droid.url = "<<FLAKE_URL>>";
nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
};
Expand Down
4 changes: 2 additions & 2 deletions tests/on-device/config-flake-h-m.cfg.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{ pkgs, config, ... }:

{
system.stateVersion = "23.11";
system.stateVersion = "24.05";

# no nixpkgs.overlays defined
environment.packages = with pkgs; [ zsh ];

home-manager.config =
{ pkgs, ... }:
{
home.stateVersion = "23.11";
home.stateVersion = "24.05";

nixpkgs.overlays = config.nixpkgs.overlays;
home.packages = with pkgs; [ dash ];
Expand Down
4 changes: 2 additions & 2 deletions tests/on-device/config-flake-h-m.flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
description = "Nix-on-Droid configuration";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
home-manager.url = "github:nix-community/home-manager/release-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.05";
nix-on-droid = {
url = "<<FLAKE_URL>>";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
Loading

0 comments on commit 4ba0a9f

Please sign in to comment.