Skip to content

Commit ddec42c

Browse files
committed
update nixpkgs
1 parent 42803a3 commit ddec42c

5 files changed

Lines changed: 17 additions & 15 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.

0 commit comments

Comments
 (0)