File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 : |
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ queue_rules:
22 - name : default
33defaults :
44 actions :
5- queue :
6- allow_merging_configuration_change : true
7- method : rebase
5+ queue_rule :
6+ merge_method : rebase
87pull_request_rules :
98 - name : merge using the merge queue
109 conditions :
Original file line number Diff line number Diff 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 ...
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 \
You can’t perform that action at this time.
0 commit comments