summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-10 12:47:51 +0100
committerGitHub <noreply@github.com>2021-01-10 12:47:51 +0100
commitb80f4f1a319c303a7e7188be95de39e73fc10ed2 (patch)
treed844de08f8cac82a494f5389ea81546086577079 /pkgs/tools/backup
parentd25225b014a04031260d91a03329ea0bd73c2441 (diff)
parent0380ee437b95c4e3e092d68b375f87157fdad0fb (diff)
downloadnixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.tar
nixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.tar.gz
nixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.tar.bz2
nixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.tar.lz
nixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.tar.xz
nixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.tar.zst
nixpkgs-b80f4f1a319c303a7e7188be95de39e73fc10ed2.zip
Merge pull request #108638 from andrewchambers/bupstash
bupstash: init at 0.6.4
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/bupstash/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/backup/bupstash/default.nix b/pkgs/tools/backup/bupstash/default.nix
new file mode 100644
index 00000000000..9801d8ded9c
--- /dev/null
+++ b/pkgs/tools/backup/bupstash/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchFromGitHub, installShellFiles, rustPlatform, ronn, pkg-config, libsodium }:
+rustPlatform.buildRustPackage rec {
+  pname = "bupstash";
+  version = "0.6.4";
+
+  src = fetchFromGitHub {
+    owner = "andrewchambers";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "013k8pr4865f5rp66fjf3a8069kmd29brxv0l20z571gy2kxs5p9";
+  };
+
+  cargoSha256 = "17cdi93q71wsqqfkpz6mxcaqqhqclsbns0g1r9mni39nikw7amv1";
+
+  nativeBuildInputs = [ ronn pkg-config installShellFiles ];
+  buildInputs = [ libsodium ];
+
+  postBuild = ''
+    RUBYOPT="-KU -E utf-8:utf-8" ronn doc/man/*.md
+  '';
+
+  postInstall = ''
+    installManPage doc/man/*.[1-9]
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Easy and efficient encrypted backups";
+    homepage = "https://bupstash.io";
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ andrewchambers ];
+  };
+}