about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/backup/restique/default.nix
blob: 6bc2ea8caf945b0181f36a448eed8f711676af1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, mkDerivation
, fetchFromGitea
, cmake
, libsecret
, qtkeychain
, qttools
, restic
}:

mkDerivation rec {
  pname = "restique";
  version = "unstable-2022-11-29";

  src = fetchFromGitea {
    domain = "git.srcbox.net";
    owner = "stefan";
    repo = "restique";
    rev = "906b0b1726c26988c910baea9665f540c37c99c4";
    hash = "sha256-EYoADtYX+gm8T3/3gxTtdFOFGJf2rXryiTu8NIO0Ez4=";
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    libsecret
    qtkeychain
    qttools
  ];

  qtWrapperArgs = [
    "--prefix" "PATH" ":" (lib.makeBinPath [ restic ])
  ];

  meta = with lib; {
    description = "Restic GUI for Desktop/Laptop Backups";
    homepage = "https://git.srcbox.net/stefan/restique";
    license = with licenses; [ gpl3Plus cc-by-sa-40 cc0 ];
    maintainers = with maintainers; [ dotlambda ];
  };
}