2017-10-11 07:37:54 +02:00
|
|
|
{
|
|
|
|
mkDerivation, lib,
|
|
|
|
extra-cmake-modules,
|
|
|
|
|
|
|
|
kactivities,
|
|
|
|
plasma-framework,
|
|
|
|
kwindowsystem,
|
2018-05-21 22:59:37 +02:00
|
|
|
networkmanager-qt,
|
2017-10-11 07:37:54 +02:00
|
|
|
libksysguard,
|
|
|
|
|
|
|
|
encfs,
|
|
|
|
cryfs,
|
|
|
|
fuse
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "plasma-vault";
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./encfs-path.patch
|
|
|
|
./cryfs-path.patch
|
|
|
|
./fusermount-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
kactivities plasma-framework kwindowsystem libksysguard
|
2018-05-21 22:59:37 +02:00
|
|
|
networkmanager-qt
|
2017-10-11 07:37:54 +02:00
|
|
|
];
|
|
|
|
|
2018-01-16 14:40:57 +01:00
|
|
|
CXXFLAGS = [
|
|
|
|
''-DNIXPKGS_ENCFS=\"${lib.getBin encfs}/bin/encfs\"''
|
|
|
|
''-DNIXPKGS_ENCFSCTL=\"${lib.getBin encfs}/bin/encfsctl\"''
|
2017-10-11 07:37:54 +02:00
|
|
|
|
2018-01-16 14:40:57 +01:00
|
|
|
''-DNIXPKGS_CRYFS=\"${lib.getBin cryfs}/bin/cryfs\"''
|
2017-10-11 07:37:54 +02:00
|
|
|
|
2018-01-16 14:40:57 +01:00
|
|
|
''-DNIXPKGS_FUSERMOUNT=\"${lib.getBin fuse}/bin/fusermount\"''
|
2017-10-11 07:37:54 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|