uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
29
pkgs/development/web/nodejs/update.nix
Normal file
29
pkgs/development/web/nodejs/update.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib
|
||||
, writeScript
|
||||
, coreutils
|
||||
, curl
|
||||
, gnugrep
|
||||
, jq
|
||||
, gnupg
|
||||
, common-updater-scripts
|
||||
, majorVersion
|
||||
, nix
|
||||
, runtimeShell
|
||||
}:
|
||||
|
||||
writeScript "update-nodejs" ''
|
||||
#!${runtimeShell}
|
||||
PATH=${lib.makeBinPath [ common-updater-scripts coreutils curl gnugrep jq gnupg nix ]}
|
||||
|
||||
HOME=`mktemp -d`
|
||||
cat ${./nodejs-release-keys.asc} | gpg --import
|
||||
|
||||
tags=`curl --silent https://api.github.com/repos/nodejs/node/git/refs/tags`
|
||||
version=`echo $tags | jq -r '.[] | select(.ref | startswith("refs/tags/v${majorVersion}")) | .ref' | sort --version-sort | tail -1 | grep -oP "^refs/tags/v\K.*"`
|
||||
|
||||
curl --silent -o $HOME/SHASUMS256.txt.asc https://nodejs.org/dist/v''${version}/SHASUMS256.txt.asc
|
||||
hash_hex=`gpgv --keyring=$HOME/.gnupg/pubring.kbx --output - $HOME/SHASUMS256.txt.asc | grep -oP "^([0-9a-f]{64})(?=\s+node-v''${version}.tar.xz$)"`
|
||||
hash=`nix-hash --type sha256 --to-base32 ''${hash_hex}`
|
||||
|
||||
update-source-version nodejs-${majorVersion}_x "''${version}" "''${hash}"
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue