Skip to content

Commit 1713e9f

Browse files
committed
update nixpkgs
1 parent 42803a3 commit 1713e9f

8 files changed

Lines changed: 40 additions & 49 deletions

File tree

.github/workflows/nix-portable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# Nix Flakes doesn't work on shallow clones
2323
fetch-depth: 0
2424

25-
- uses: cachix/install-nix-action@V27
25+
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
2626
with:
2727
extra_nix_config: |
2828
experimental-features = nix-command flakes
@@ -53,7 +53,7 @@ jobs:
5353
matrix: ${{ steps.set-matrix.outputs.matrix }}
5454
steps:
5555
- uses: actions/checkout@v4
56-
- uses: cachix/install-nix-action@v30
56+
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
5757
- id: set-matrix
5858
name: Generate Nix Matrix
5959
run: |
@@ -71,7 +71,7 @@ jobs:
7171
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
7272
steps:
7373
- uses: actions/checkout@v4
74-
- uses: cachix/install-nix-action@v30
74+
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
7575
with:
7676
extra_nix_config: |
7777
experimental-features = nix-command flakes impure-derivations ca-derivations
@@ -100,7 +100,7 @@ jobs:
100100
# Nix Flakes doesn't work on shallow clones
101101
fetch-depth: 0
102102

103-
- uses: cachix/install-nix-action@V27
103+
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
104104
with:
105105
extra_nix_config: |
106106
experimental-features = nix-command flakes

.github/workflows/update-flake-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Checkout repository
1212
uses: actions/checkout@v4
1313
- name: Install Nix
14-
uses: cachix/install-nix-action@V27
14+
uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
1515
# `bors merge` will automerge if tests succeed
1616
# Requires this github to be installed: https://app.bors.tech/
1717
- name: Update flake.lock

.mergify.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ queue_rules:
22
- name: default
33
defaults:
44
actions:
5-
queue:
6-
allow_merging_configuration_change: true
7-
method: rebase
5+
queue_rule:
6+
merge_method: rebase
87
pull_request_rules:
98
- name: merge using the merge queue
109
conditions:

default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ with builtins;
1010
buildPackages,
1111
upx,
1212

13-
busybox ? pkgs.pkgsStatic.busybox,
13+
busybox,
1414
cacert ? pkgs.cacert,
1515
compression ? "zstd -19 -T0",
1616
gnutar ? pkgs.pkgsStatic.gnutar,
@@ -19,7 +19,7 @@ with builtins;
1919
pkgs ? import <nixpkgs> {},
2020
xz ? pkgs.pkgsStatic.xz,
2121
zstd ? pkgs.pkgsStatic.zstd,
22-
nixStatic ? pkgs.pkgsStatic.nix,
22+
nixStatic,
2323
# hardcode executable to run. Useful when creating a bundle.
2424
bundledPackage ? null,
2525
...
@@ -42,15 +42,18 @@ let
4242
git = pkgs."${gitAttribute}";
4343

4444
maketar = targets:
45+
let
46+
closureInfo = buildPackages.closureInfo { rootPaths = targets; };
47+
in
4548
stdenv.mkDerivation {
4649
name = "nix-portable-store-tarball";
4750
nativeBuildInputs = [ perl zstd ];
4851
exportReferencesGraph = map (x: [("closure-" + baseNameOf x) x]) targets;
4952
buildCommand = ''
50-
storePaths=$(perl ${buildPackages.pathsFromGraph} ./closure-*)
53+
storePaths=$(cat ${closureInfo}/store-paths)
5154
mkdir $out
5255
echo $storePaths > $out/index
53-
cp -r ${buildPackages.closureInfo { rootPaths = targets; }} $out/closureInfo
56+
cp -r ${closureInfo} $out/closureInfo
5457
5558
tar -cf - \
5659
--owner=0 --group=0 --mode=u+rw,uga+r \

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/qemu-efi.nix

Lines changed: 0 additions & 20 deletions
This file was deleted.

testing/vagrant-test.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
4949
5050
qemu-img create -b $rootDisk -F "$image_type" -f qcow2 ./disk.qcow2
5151
52-
cp ${pkgs.callPackage ./qemu-efi.nix {}} ./QEMU_EFI.img
53-
chmod +w ./QEMU_EFI.img
52+
cp ${pkgsBuildBuild.qemu}/share/qemu/edk2-aarch64-code.fd QEMU_EFI.fd
53+
chmod +w QEMU_EFI.fd
5454
5555
extra_qemu_opts="${image.extraQemuOpts or ""}"
5656
@@ -67,7 +67,8 @@ stdenv.mkDerivation (finalAttrs: {
6767
-drive id=disk1,file=./disk.qcow2,if=virtio \
6868
-netdev user,id=net0,hostfwd=tcp::$port-:22 -device virtio-net-pci,netdev=net0 \
6969
${lib.optionalString (system == "aarch64-linux")
70-
"-cpu cortex-a53 -machine virt -drive if=pflash,format=raw,file=./QEMU_EFI.img"} \
70+
"-cpu cortex-a53 -machine virt -pflash ./QEMU_EFI.fd"
71+
} \
7172
$extra_qemu_opts &
7273
qemu_pid=$!
7374
trap "kill $qemu_pid" EXIT
@@ -79,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
7980
chmod 0400 ./vagrant_insecure_key
8081
8182
export HOME=$(realpath .)
82-
ssh_opts="-o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -i ./vagrant_insecure_key"
83+
ssh_opts="-o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -o ControlPath=none -i ./vagrant_insecure_key"
8384
ssh="ssh -p $port -q $ssh_opts vagrant@localhost"
8485
echo "ssh command: $ssh"
8586
sshRoot="ssh -p $port -q $ssh_opts root@localhost"

testing/vm-tests.nix

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@ let
5252

5353
images.aarch64-linux = {
5454
nixos = {
55-
image = (toString (nixos {
56-
imports = [
57-
./nixos-iso.nix
58-
];
59-
}).config.system.build.isoImage) + "/iso/nixos.iso";
55+
image =
56+
let
57+
nixosSystem = (nixos {
58+
imports = [
59+
./nixos-iso.nix
60+
];
61+
});
62+
in
63+
(toString nixosSystem.config.system.build.isoImage) + "/iso/${nixosSystem.config.system.build.isoImage.isoName}";
6064
system = "aarch64-linux";
6165
dontUnpack = true;
6266
disabledRuntimes = ["proot"];
@@ -115,11 +119,15 @@ let
115119

116120
images.x86_64-linux = {
117121
nixos = {
118-
image = (toString (nixos {
119-
imports = [
120-
./nixos-iso.nix
121-
];
122-
}).config.system.build.isoImage) + "/iso/nixos.iso";
122+
image =
123+
let
124+
nixosSystem = (nixos {
125+
imports = [
126+
./nixos-iso.nix
127+
];
128+
});
129+
in
130+
(toString nixosSystem.config.system.build.isoImage) + "/iso/${nixosSystem.config.system.build.isoImage.isoName}";
123131
system = "x86_64-linux";
124132
rootDisk = "nixos.qcow2";
125133
dontUnpack = true;

0 commit comments

Comments
 (0)