plasma-vault: add gocryptfs support (#205519)
This commit is contained in:
parent
5128a000ad
commit
edd8b0812f
2 changed files with 16 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
|||
diff --git a/kded/engine/backends/gocryptfs/gocryptfsbackend.cpp b/kded/engine/backends/gocryptfs/gocryptfsbackend.cpp
|
||||
index 2d6df94..3e8ec9a 100644
|
||||
--- a/kded/engine/backends/gocryptfs/gocryptfsbackend.cpp
|
||||
+++ b/kded/engine/backends/gocryptfs/gocryptfsbackend.cpp
|
||||
@@ -202,7 +202,7 @@ QProcess *GocryptfsBackend::gocryptfs(const QStringList &arguments) const
|
||||
auto config = KSharedConfig::openConfig(PLASMAVAULT_CONFIG_FILE);
|
||||
KConfigGroup backendConfig(config, "GocryptfsBackend");
|
||||
|
||||
- return process("gocryptfs", arguments + backendConfig.readEntry("extraMountOptions", QStringList{}), {});
|
||||
+ return process(NIXPKGS_GOCRYPTFS, arguments + backendConfig.readEntry("extraMountOptions", QStringList{}), {});
|
||||
}
|
||||
|
||||
QString GocryptfsBackend::getConfigFilePath(const Device &device) const
|
|
@ -9,6 +9,7 @@
|
|||
, encfs
|
||||
, cryfs
|
||||
, fuse
|
||||
, gocryptfs
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
|
@ -19,6 +20,7 @@ mkDerivation {
|
|||
./0001-encfs-path.patch
|
||||
./0002-cryfs-path.patch
|
||||
./0003-fusermount-path.patch
|
||||
./0004-gocryptfs-path.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -32,10 +34,9 @@ mkDerivation {
|
|||
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\"''
|
||||
''-DNIXPKGS_GOCRYPTFS=\"${lib.getBin gocryptfs}/bin/gocryptfs\"''
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue