Skip to content

Update add-sri.py script to work with current nixpkgs and Nix#7

Merged
nlewo merged 1 commit intonix-community:masterfrom
LeSuisse:update-sri-script-current-state
Feb 26, 2023
Merged

Update add-sri.py script to work with current nixpkgs and Nix#7
nlewo merged 1 commit intonix-community:masterfrom
LeSuisse:update-sri-script-current-state

Conversation

@LeSuisse
Copy link
Copy Markdown
Contributor

@LeSuisse LeSuisse commented Feb 6, 2023

  • Sources can already be using a SRI hash
  • nix hash to-sri has replaced nix to-sri

@Artturin
Copy link
Copy Markdown
Member

Artturin commented Feb 7, 2023

you'll also want to run

niv modify nixpkgs --branch nixos-22.11
niv update
niv init

to update the niv pin

* Sources can already be using a SRI hash
* `nix hash to-sri` has replaced `nix to-sri`
@LeSuisse LeSuisse force-pushed the update-sri-script-current-state branch from f6208c5 to d22c7a8 Compare February 7, 2023 13:16
@nlewo
Copy link
Copy Markdown
Member

nlewo commented Feb 26, 2023

Thank you!

@nlewo nlewo merged commit 5523569 into nix-community:master Feb 26, 2023
@nlewo
Copy link
Copy Markdown
Member

nlewo commented Feb 26, 2023

I would have preferred to set the integrity attribute at Nix evaluation but a builtin was lacking. I opened an issue and a PR is in progress 🎉

@LeSuisse LeSuisse deleted the update-sri-script-current-state branch February 26, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants