@@ -0,0 +1,41 @@
1+{ lib
2+, mkDerivation
3+, fetchFromGitea
4+, cmake
5+, libsecret
6+, qtkeychain
7+, restic
8+}:
9+
10+mkDerivation rec {
11+ pname = "restique";
12+ version = "unstable-2021-05-03";
13+
14+ src = fetchFromGitea {
15+ domain = "git.srcbox.net";
16+ owner = "stefan";
17+ repo = "restique";
18+ rev = "f83ea63c2e2f2a41e845f54c7fe2c391a528a121";
19+ sha256 = "0j1qihv7hd90xkfm4ksv74q6m7cq781fbdnc3l4spcd7h2p8lh0z";
20+ };
21+
22+ nativeBuildInputs = [
23+ cmake
24+ ];
25+
26+ buildInputs = [
27+ libsecret
28+ qtkeychain
29+ ];
30+
31+ qtWrapperArgs = [
32+ "--prefix" "PATH" ":" (lib.makeBinPath [ restic ])
33+ ];
34+
35+ meta = with lib; {
36+ description = "Restic GUI for Desktop/Laptop Backups";
37+ homepage = "https://git.srcbox.net/stefan/restique";
38+ license = with licenses; [ gpl3Plus cc-by-sa-40 cc0 ];
39+ maintainers = with maintainers; [ dotlambda ];
40+ };
41+}