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