mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
_1password-gui: add update script
This commit is contained in:
parent
7dd3f3d191
commit
421572ac2e
@ -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 = ''
|
||||
|
5
pkgs/tools/security/1password-gui/update.sh
Executable file
5
pkgs/tools/security/1password-gui/update.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user