Merge pull request #225399 from NobbZ/rustic-rs-update-script

rustic-rs: add update script
This commit is contained in:
Norbert Melzer 2023-04-09 13:12:55 +02:00 committed by GitHub
commit 231b45989a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";