fix new nix hash cli syntax

This commit is contained in:
Jörg Thalheim 2021-01-09 07:51:27 +01:00
parent 8fb6c5e6c6
commit f6e0adb59b
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
3 changed files with 14 additions and 10 deletions

View File

@ -2,11 +2,11 @@
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1605370193,
"narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
"lastModified": 1610051610,
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5021eac20303a61fafe17224c087f5519baed54d",
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
"type": "github"
},
"original": {
@ -17,15 +17,17 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1605991784,
"narHash": "sha256-xKiqqUKr00PxPVYlwMsenThw0Ba/rXDGuae6XB9XqGE=",
"path": "/nix/store/550xkq18mh8a6xgpnard55rjqxa9zmlc-source",
"rev": "6159c7006e48f57a47964ba890276f36124258d6",
"type": "path"
"lastModified": 1610171209,
"narHash": "sha256-Wcr5ynL+cQK+NuEeWiycPvAJtuiLWOezfgHQRLv5ZVY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "163cda6c0b9098b56b8fd43c4fab35932ba7192c",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {

View File

@ -1,6 +1,7 @@
{
description = "Swiss-knife for updating nix packages.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:

View File

@ -48,6 +48,7 @@ def to_sri(hashstr: str) -> str:
"nix",
"--experimental-features",
"nix-command",
"hash",
"to-sri",
f"{prefix}{hashstr}",
]