mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 06:48:41 +00:00
matrix-hookshot: adapt update script to new nix-prefetch-github
This commit is contained in:
parent
095ad56963
commit
68d6f72e59
@ -26,7 +26,7 @@ mkYarnPackage rec {
|
||||
owner = "matrix-org";
|
||||
repo = "matrix-hookshot";
|
||||
rev = data.version;
|
||||
sha256 = data.srcHash;
|
||||
hash = data.srcHash;
|
||||
};
|
||||
|
||||
packageJSON = ./package.json;
|
||||
@ -39,7 +39,7 @@ mkYarnPackage rec {
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
sha256 = data.cargoHash;
|
||||
hash = data.cargoHash;
|
||||
};
|
||||
|
||||
packageResolutions = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "4.4.0",
|
||||
"srcHash": "mPLDdAVIMb5d2LPGtIfm/ofRs42081S3+QTsvqkfp3s=",
|
||||
"srcHash": "sha256-mPLDdAVIMb5d2LPGtIfm/ofRs42081S3+QTsvqkfp3s=",
|
||||
"yarnHash": "0qd3h870mk3a2lzm0r7kyh07ykw86h9xwai9h205gnv1w0d59z6i",
|
||||
"cargoHash": "NGcnRKasYE4dleQLq+E4cM6C04Rfu4AsenDznGyC2Nk="
|
||||
"cargoHash": "sha256-NGcnRKasYE4dleQLq+E4cM6C04Rfu4AsenDznGyC2Nk="
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ if [ -z "$version" ]; then
|
||||
fi
|
||||
|
||||
src="https://raw.githubusercontent.com/matrix-org/matrix-hookshot/$version"
|
||||
src_hash=$(nix-prefetch-github matrix-org matrix-hookshot --rev ${version} | jq -r .sha256)
|
||||
src_hash=$(nix-prefetch-github matrix-org matrix-hookshot --rev ${version} | jq -r .hash)
|
||||
|
||||
tmpdir=$(mktemp -d)
|
||||
trap 'rm -rf "$tmpdir"' EXIT
|
||||
@ -32,6 +32,6 @@ cat > pin.json << EOF
|
||||
"version": "$version",
|
||||
"srcHash": "$src_hash",
|
||||
"yarnHash": "$yarn_hash",
|
||||
"cargoHash": "0000000000000000000000000000000000000000000000000000"
|
||||
"cargoHash": "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
}
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user