_1password-gui: 8.0.30 -> 8.0.33-53.BETA

Also modify the update script to work again.

Note that prior versions were also part of the Linux beta. So, the use
of BETA in the version does not mean that this update switch from a
stable version to a beta version.

+6 -6
+5 -5
pkgs/applications/misc/1password-gui/default.nix
··· 8 8 9 9 stdenv.mkDerivation rec { 10 10 pname = "1password"; 11 - version = "8.0.30"; 11 + version = "8.0.33-53.BETA"; 12 12 13 13 src = fetchurl { 14 - url = "https://downloads.1password.com/linux/tar/1password-${version}.tar.gz"; 15 - hash = "sha256-R4Tbu2TAig0iF/IN8hnO3Bzqqj6Ru1YyyGhzraM7/9Y="; 14 + url = "https://downloads.1password.com/linux/tar/beta/x86_64/1password-${version}.x64.tar.gz"; 15 + hash = "sha256-YUYER+UiM1QEDgGl0P9bIT65YVacUnuGtQVkV91teEU="; 16 16 }; 17 17 18 18 nativeBuildInputs = [ makeWrapper ]; ··· 33 33 install -Dm0755 -t $out/share/${pname} {1Password-BrowserSupport,1Password-KeyringHelper} 34 34 35 35 # Desktop file. 36 - install -Dt $out/share/applications usr/share/applications/${pname}.desktop 36 + install -Dt $out/share/applications resources/${pname}.desktop 37 37 substituteInPlace $out/share/applications/${pname}.desktop \ 38 38 --replace 'Exec=/opt/1Password/${pname}' 'Exec=${pname}' 39 39 40 40 # Icons. 41 - cp -a usr/share/icons $out/share 41 + cp -a resources/icons $out/share 42 42 43 43 # Wrap the application with Electron. 44 44 makeWrapper "${electron_11}/bin/electron" "$out/bin/${pname}" \
+1 -1
pkgs/applications/misc/1password-gui/update.sh
··· 1 1 #!/usr/bin/env nix-shell 2 2 #!nix-shell -i bash -p curl gnused common-updater-scripts 3 3 4 - version="$(curl -sL https://onepassword.s3.amazonaws.com/linux/debian/dists/edge/main/binary-amd64/Packages | sed -r -n 's/^Version: (.*)-[0-9]+/\1/p' | head -n1)" 4 + version="$(curl -sL https://onepassword.s3.amazonaws.com/linux/debian/dists/edge/main/binary-amd64/Packages | sed -r -n 's/^Version: (.*)/\1/p' | head -n1)" 5 5 update-source-version _1password-gui "$version"