1{
2 mkDerivation,
3 lib,
4 extra-cmake-modules,
5 kactivities,
6 plasma-framework,
7 kwindowsystem,
8 networkmanager-qt,
9 libksysguard,
10 encfs,
11 cryfs,
12 fuse,
13 gocryptfs,
14}:
15
16mkDerivation {
17 pname = "plasma-vault";
18 nativeBuildInputs = [ extra-cmake-modules ];
19
20 patches = [
21 ./0001-encfs-path.patch
22 ./0002-cryfs-path.patch
23 ./0003-fusermount-path.patch
24 ./0004-gocryptfs-path.patch
25 ];
26
27 buildInputs = [
28 kactivities
29 plasma-framework
30 kwindowsystem
31 libksysguard
32 networkmanager-qt
33 ];
34
35 CXXFLAGS = [
36 ''-DNIXPKGS_ENCFS=\"${lib.getBin encfs}/bin/encfs\"''
37 ''-DNIXPKGS_ENCFSCTL=\"${lib.getBin encfs}/bin/encfsctl\"''
38 ''-DNIXPKGS_CRYFS=\"${lib.getBin cryfs}/bin/cryfs\"''
39 ''-DNIXPKGS_FUSERMOUNT=\"${lib.getBin fuse}/bin/fusermount\"''
40 ''-DNIXPKGS_GOCRYPTFS=\"${lib.getBin gocryptfs}/bin/gocryptfs\"''
41 ];
42
43}