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
21
pkgs/tools/misc/xvfb-run/update.sh
Executable file
21
pkgs/tools/misc/xvfb-run/update.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl gnused nix-prefetch jq common-updater-scripts
|
||||
# shellcheck shell=bash
|
||||
|
||||
set -e
|
||||
|
||||
info=$(nix-prefetch-git --quiet --url "https://github.com/archlinux/svntogit-packages" --rev "refs/heads/packages/xorg-server")
|
||||
|
||||
rev=$(jq -r '.rev' <<< "$info")
|
||||
sha256=$(nix hash to-sri --type sha256 "$(jq -r '.sha256' <<< "$info")")
|
||||
dir=$(jq -r '.path' <<< "$info")
|
||||
|
||||
newXvfbsha=$(sha256sum "$dir/trunk/xvfb-run")
|
||||
oldXvfbsha=$(sha256sum "$(nix build --quiet ".#xvfb-run.src" --json --no-link | jq -r '.[].outputs.out')/trunk/xvfb-run")
|
||||
|
||||
if [[ "$newXvfbsha" != "$oldXvfbsha" ]]; then
|
||||
(
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
update-source-version xvfb-run "1+g${rev:0:7}" "$sha256" --rev="$rev"
|
||||
)
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue