From 5cd2a1c1995f724405e1a5cbdc627cc6aa7185f2 Mon Sep 17 00:00:00 2001 From: renesat Date: Sat, 18 Sep 2021 14:22:46 +0300 Subject: [PATCH 1/2] maintainers: add renesat --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index acbd83369c52..a6cf6977a1db 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9182,6 +9182,12 @@ githubId = 546296; name = "Eric Ren"; }; + renesat = { + name = "Ivan Smolyakov"; + email = "smol.ivan97@gmail.com"; + github = "renesat"; + githubId = 11363539; + }; renzo = { email = "renzocarbonara@gmail.com"; github = "k0001"; From fd010f6ba6c46f29d0606d1abce268c92d639c94 Mon Sep 17 00:00:00 2001 From: renesat Date: Sat, 18 Sep 2021 04:26:33 +0300 Subject: [PATCH 2/2] autorestic: init at 1.2.0 --- pkgs/tools/backup/autorestic/default.nix | 32 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/backup/autorestic/default.nix diff --git a/pkgs/tools/backup/autorestic/default.nix b/pkgs/tools/backup/autorestic/default.nix new file mode 100644 index 000000000000..ab299db1c675 --- /dev/null +++ b/pkgs/tools/backup/autorestic/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchFromGitHub, installShellFiles, buildGoModule }: + +buildGoModule rec { + pname = "autorestic"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "cupcakearmy"; + repo = pname; + rev = "v${version}"; + sha256 = "yQgSJ0SQNWPMyrYn8rep+1b549HP8sOERh+kOiAK3+c="; + }; + + vendorSha256 = "7648gAguqeqLKFS9xRcx20wpSLb+ykZ7rOqR5PKe71o="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd autorestic \ + --bash <($out/bin/autorestic completion bash) \ + --fish <($out/bin/autorestic completion fish) \ + --zsh <($out/bin/autorestic completion zsh) + ''; + + meta = with lib; { + description = "High level CLI utility for restic"; + homepage = "https://github.com/cupcakearmy/autorestic"; + license = licenses.asl20; + maintainers = with maintainers; [ renesat ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1747a5f4d53..3011559019d4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -141,6 +141,8 @@ with pkgs; autoconf = autoconf269; }; + autorestic = callPackage ../tools/backup/autorestic { }; + autoPatchelfHook = makeSetupHook { name = "auto-patchelf-hook"; } ../build-support/setup-hooks/auto-patchelf.sh;