depot/third_party/nixpkgs/pkgs/desktops/plasma-5/plasma-vault/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

42 lines
854 B
Nix

{ mkDerivation
, lib
, extra-cmake-modules
, kactivities
, plasma-framework
, kwindowsystem
, networkmanager-qt
, libksysguard
, encfs
, cryfs
, fuse
, gocryptfs
}:
mkDerivation {
pname = "plasma-vault";
nativeBuildInputs = [ extra-cmake-modules ];
patches = [
./0001-encfs-path.patch
./0002-cryfs-path.patch
./0003-fusermount-path.patch
./0004-gocryptfs-path.patch
];
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\"''
''-DNIXPKGS_GOCRYPTFS=\"${lib.getBin gocryptfs}/bin/gocryptfs\"''
];
}