mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #225399 from NobbZ/rustic-rs-update-script
rustic-rs: add update script
This commit is contained in:
commit
231b45989a
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user