tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fix update script
Sebastien Bariteau
6 months ago
55fe2325
e960e6e1
+3
-3
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
vi
vivaldi-ffmpeg-codecs
update.sh
+3
-3
pkgs/by-name/vi/vivaldi-ffmpeg-codecs/update.sh
···
1
1
#!/usr/bin/env nix-shell
2
2
-
#!nix-shell -i bash -p common-updater-scripts coreutils grep jq squashfsTools
2
2
+
#!nix-shell -i bash -p common-updater-scripts coreutils gnugrep jq squashfsTools
3
3
4
4
set -eu -o pipefail
5
5
···
18
18
local url=$(echo $selectedRelease | jq -r '.download.url')
19
19
source="$(nix-prefetch-url "$url")"
20
20
hash=$(nix-hash --to-sri --type sha256 "$source")
21
21
-
update-source-version vivaldi-ffmpeg-codecs "$version" "$hash" "$url" --ignore-same-version --system=$platform --source-key="sources.$platform"
21
21
+
update-source-version vivaldi-ffmpeg-codecs "$version" "$hash" "$url" --ignore-same-version --system=$platform --source-key="sources.$platform" --file "package.nix"
22
22
}
23
23
24
24
x86Release="$(echo $STABLE_RELEASES | jq 'select(.channel.architecture=="amd64")')"
···
26
26
arm64Release="$(echo $STABLE_RELEASES | jq -r 'select(.channel.architecture=="arm64")')"
27
27
arm64CodecVersion=$(max_version "$arm64Release")
28
28
29
29
-
currentVersion=$(nix-instantiate --eval -E "with import ./. {}; vivaldi-ffmpeg-codecs.version or (lib.getVersion vivaldi-ffmpeg-codecs)" | tr -d '"')
29
29
+
currentVersion=$(grep 'version =' ./package.nix | cut -d '"' -f 2)
30
30
31
31
if [[ "$currentVersion" == "$x86CodecVersion" ]]; then
32
32
exit 0