_1password-gui: add update script

This commit is contained in:
Daniël de Kok 2020-08-25 20:25:23 +02:00
parent 7dd3f3d191
commit 421572ac2e
2 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,8 @@ stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath runtimeLibs}"
'';
passthru.updateScript = ./update.sh;
meta = with stdenv.lib; {
description = "Multi-platform password manager";
longDescription = ''

View File

@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnused common-updater-scripts
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)"
update-source-version _1password-gui "$version"