summary refs log tree commit diff
path: root/pkgs/servers/gotify/update.sh
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2020-05-15 01:39:42 +0300
committerDoron Behar <doron.behar@gmail.com>2020-05-15 01:39:42 +0300
commit5746259af694fc791743c322f2cf0d47e3d0d9bd (patch)
tree6d218031d4b0c655264ab83ba2a48ed20a1dc7a7 /pkgs/servers/gotify/update.sh
parent39b92f6e45534658b49e79c78154df6333af8472 (diff)
downloadnixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.tar
nixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.tar.gz
nixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.tar.bz2
nixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.tar.lz
nixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.tar.xz
nixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.tar.zst
nixpkgs-5746259af694fc791743c322f2cf0d47e3d0d9bd.zip
gotify: adapt update script to use vendor sha
Diffstat (limited to 'pkgs/servers/gotify/update.sh')
-rwxr-xr-xpkgs/servers/gotify/update.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/servers/gotify/update.sh b/pkgs/servers/gotify/update.sh
index e26ffbde62e..dc39a15be73 100755
--- a/pkgs/servers/gotify/update.sh
+++ b/pkgs/servers/gotify/update.sh
@@ -11,9 +11,9 @@ echo got version $version
 echo \""${version#v}"\" > "$dirname/version.nix"
 printf '%s' $(nix-prefetch-git --quiet --rev ${version} https://github.com/gotify/server | jq .sha256) > $dirname/source-sha.nix
 tput setaf 1
-echo zeroing modSha256 in $dirname/mod-sha.nix
+echo zeroing vendorSha256 in $dirname/vendor-sha.nix
 tput sgr0
-printf '"%s"' "0000000000000000000000000000000000000000000000000000" > $dirname/mod-sha.nix
+printf '"%s"' "0000000000000000000000000000000000000000000000000000" > $dirname/vendor-sha.nix
 
 GOTIFY_WEB_SRC="https://raw.githubusercontent.com/gotify/server/$version"
 
@@ -28,13 +28,13 @@ echo removed yarn.lock
 
 echo running nix-build for ui
 nix-build -A gotify-server.ui
-echo running nix-build for gotify itself in order to get modSha256
+echo running nix-build for gotify itself in order to get vendorSha256
 set +e
-modSha256="$(nix-build -A gotify-server 2>&1 | grep "got:" | cut -d':' -f3)"
+vendorSha256="$(nix-build -A gotify-server 2>&1 | grep "got:" | cut -d':' -f3)"
 set -e
-printf '"%s"' "$modSha256" > $dirname/mod-sha.nix
+printf '"%s"' "$vendorSha256" > $dirname/vendor-sha.nix
 tput setaf 2
-echo got modSha256 of: $modSha256
+echo got vendorSha256 of: $vendorSha256
 tput sgr0
 echo running nix-build -A gotify-server which should build gotify-server normally
 nix-build -A gotify-server