commit 2b85aa227b2a8f68fec29103923634c62a0ea079 parent 6ae72dbbc66e8ece3067f1e00bb73097c811865c Author: mtmn <miro@haravara.org> Date: Sun, 26 Apr 2026 17:21:58 +0200 chore: stop tripping over nix hash changes Diffstat:
| D | .github/workflows/update-nix-hash.yml | | | 29 | ----------------------------- |
| M | flake.nix | | | 2 | +- |
2 files changed, 1 insertion(+), 30 deletions(-)
diff --git a/.github/workflows/update-nix-hash.yml b/.github/workflows/update-nix-hash.yml @@ -1,29 +0,0 @@ -on: - push: - -permissions: - contents: write - -jobs: - update-nix-hash: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - with: - ref: ${{ github.ref }} - token: ${{ secrets.GITHUB_TOKEN }} - - - uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14 - - - name: Recompute npmDepsHash - run: | - hash=$(nix run nixpkgs#prefetch-npm-deps -- package-lock.json) - sed -i "s|npmDepsHash = \"sha256-[^\"]*\"|npmDepsHash = \"$hash\"|" flake.nix - - - name: Commit if changed - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add flake.nix - git diff --staged --quiet || git commit -m "chore: update npmDepsHash" - git push diff --git a/flake.nix b/flake.nix @@ -48,7 +48,7 @@ outputHashAlgo = "sha256"; outputHashMode = "recursive"; - outputHash = "sha256-L2LnLjSBayyYgYXzzcTMAMJad7FAk4Vryn43W8rlFaA="; + outputHash = "sha256-IUscqMJsIHLfPssln4rYeEBLyAHPO+46NA46ZFoaPBQ="; buildPhase = '' export HOME=$TMPDIR