rustic-rs: add update script

This commit is contained in:
Norbert Melzer 2023-04-09 11:32:52 +02:00
parent 11c129c16f
commit bd81c94de0

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform, stdenv, Security, installShellFiles }:
{ lib, fetchFromGitHub, rustPlatform, stdenv, Security, installShellFiles, nix-update-script }:
rustPlatform.buildRustPackage rec {
pname = "rustic-rs";
@ -7,7 +7,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "rustic-rs";
repo = "rustic";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-r4hOjX/LKv2wX720FMEztUo9rf2hDBLfcHtENSZNA3U=";
};
@ -28,6 +28,8 @@ rustPlatform.buildRustPackage rec {
installShellCompletion rustic.{ba,fi}sh
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/rustic-rs/rustic";
changelog = "https://github.com/rustic-rs/rustic/blob/${src.rev}/changelog/${version}.txt";