2020-04-24 23:36:52 +00:00
|
|
|
{
|
|
|
|
mkDerivation, lib,
|
|
|
|
extra-cmake-modules,
|
|
|
|
|
|
|
|
kactivities,
|
|
|
|
plasma-framework,
|
|
|
|
kwindowsystem,
|
|
|
|
networkmanager-qt,
|
|
|
|
libksysguard,
|
|
|
|
|
|
|
|
encfs,
|
|
|
|
cryfs,
|
|
|
|
fuse
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2022-03-10 19:12:11 +00:00
|
|
|
pname = "plasma-vault";
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
|
|
|
|
|
|
|
patches = [
|
2021-12-06 16:07:01 +00:00
|
|
|
./0001-encfs-path.patch
|
|
|
|
./0002-cryfs-path.patch
|
|
|
|
./0003-fusermount-path.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
kactivities plasma-framework kwindowsystem libksysguard
|
|
|
|
networkmanager-qt
|
|
|
|
];
|
|
|
|
|
|
|
|
CXXFLAGS = [
|
|
|
|
''-DNIXPKGS_ENCFS=\"${lib.getBin encfs}/bin/encfs\"''
|
|
|
|
''-DNIXPKGS_ENCFSCTL=\"${lib.getBin encfs}/bin/encfsctl\"''
|
|
|
|
|
|
|
|
''-DNIXPKGS_CRYFS=\"${lib.getBin cryfs}/bin/cryfs\"''
|
|
|
|
|
|
|
|
''-DNIXPKGS_FUSERMOUNT=\"${lib.getBin fuse}/bin/fusermount\"''
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|