diff --git a/.github/workflows/check-nim-hash.yml b/.github/workflows/check-nim-hash.yml new file mode 100644 index 0000000000..7aba5e545d --- /dev/null +++ b/.github/workflows/check-nim-hash.yml @@ -0,0 +1,19 @@ +name: Check Nim Hash +on: + pull_request: + paths: + - 'nix/nimble.nix' + push: + branches: + - stable + - testing + +jobs: + verify-hash: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + - name: Verify Nim hash + run: | + nix-build nix/nimble.nix diff --git a/nix/nimble.nix b/nix/nimble.nix index 5343aaa813..770f8fa5aa 100644 --- a/nix/nimble.nix +++ b/nix/nimble.nix @@ -8,5 +8,5 @@ in pkgs.fetchFromGitHub { repo = "nimble"; rev = tools.findKeyValue "^ +NimbleStableCommit = \"([a-f0-9]+)\".+" sourceFile; # WARNING: Requires manual updates when Nim compiler version changes. - hash = "sha256-sa0irAZjQRZLduEMBPf7sHlY1FigBJTR/vIH4ihii/w="; + hash = "sha256-MVHf19UbOWk8Zba2scj06PxdYYOJA6OXrVyDQ9Ku6Us="; }