2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, libpwquality
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2024-06-05 15:53:02 +00:00
|
|
|
, qt6
|
|
|
|
, kdePackages
|
2023-10-09 19:29:22 +00:00
|
|
|
, cryfs
|
|
|
|
, encfs
|
|
|
|
, fscrypt-experimental
|
|
|
|
, gocryptfs
|
|
|
|
, securefs
|
|
|
|
, sshfs
|
2024-06-05 15:53:02 +00:00
|
|
|
, libgcrypt
|
2023-10-09 19:29:22 +00:00
|
|
|
, libsecret
|
|
|
|
, withKWallet ? true
|
|
|
|
, withLibsecret ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sirikali";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.6.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mhogomchungu";
|
|
|
|
repo = "sirikali";
|
|
|
|
rev = version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-org8mYKwZDdOvkQyd3eD+GaI0aHshMbe2f9i1bM+lBk=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
qt6.qtbase
|
2023-10-09 19:29:22 +00:00
|
|
|
libpwquality
|
|
|
|
hicolor-icon-theme
|
|
|
|
libgcrypt
|
|
|
|
]
|
2024-06-05 15:53:02 +00:00
|
|
|
++ lib.optionals withKWallet [ kdePackages.kwallet ]
|
|
|
|
++ lib.optionals withLibsecret [ libsecret ]
|
2023-10-09 19:29:22 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
qt6.wrapQtAppsHook
|
2023-10-09 19:29:22 +00:00
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
''--prefix PATH : ${lib.makeBinPath [
|
|
|
|
cryfs
|
|
|
|
encfs
|
|
|
|
fscrypt-experimental
|
|
|
|
gocryptfs
|
|
|
|
securefs
|
|
|
|
sshfs
|
|
|
|
]}''
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DINTERNAL_LXQT_WALLET=false"
|
|
|
|
"-DNOKDESUPPORT=${if withKWallet then "false" else "true"}"
|
|
|
|
"-DNOSECRETSUPPORT=${if withLibsecret then "false" else "true"}"
|
2024-06-05 15:53:02 +00:00
|
|
|
"-DBUILD_WITH_QT6=true"
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Qt/C++ GUI front end to sshfs, ecryptfs-simple, cryfs, gocryptfs, securefs, fscrypt and encfs";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/mhogomchungu/sirikali";
|
|
|
|
changelog = "https://github.com/mhogomchungu/sirikali/blob/${src.rev}/changelog";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ linuxissuper ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "sirikali";
|
|
|
|
platforms = platforms.all;
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|