mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-14 06:54:32 +02:00
Nix support & automated update (#130)
* Add a nix flake * Update flake deps and nix package's version nightly * nix-flake: Update vendorSha256 on each push An extra commit will be pushed only if needed * Move flake.* into root directory Update flake.lock * nix-flake: Support more systems, commit hash as version * Don't automatically update flake.lock
This commit is contained in:
committed by
GitHub
parent
d5290ebd32
commit
b8d9727833
28
.github/workflows/nix.yml
vendored
Normal file
28
.github/workflows/nix.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: nix
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
update-vendor-sha:
|
||||
name: vendor-sha
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v17
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Update packwiz version
|
||||
run: nix run nixpkgs#nix-prefetch ./nix/prefetcher.nix | tee ./nix/vendor-sha256
|
||||
|
||||
- name: Commit
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "chore: update packwiz vendorSha256"
|
||||
branch: master
|
||||
|
Reference in New Issue
Block a user