about summary refs log tree commit diff
path: root/nixpkgs/pkgs/kde/plasma/plasma-vault/default.nix
blob: 9ab545ab87b8c03fe9b8ec7a6079dbf02d76ac32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  lib,
  mkKdeDerivation,
  pkg-config,
  gocryptfs,
  fuse,
  cryfs,
  encfs,
}:
mkKdeDerivation {
  pname = "plasma-vault";

  patches = [
    ./0001-encfs-path.patch
    ./0002-cryfs-path.patch
    ./0003-fusermount-path.patch
    ./0004-gocryptfs-path.patch
  ];

  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\"''
  ];

  extraNativeBuildInputs = [pkg-config];
}