2023-11-09 09:52:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeBinaryWrapper
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, vala
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2023-11-09 09:52:50 +00:00
|
|
|
, gocryptfs
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libgee
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "cryptor";
|
2024-01-27 12:55:04 +00:00
|
|
|
version = "1.1.0";
|
2023-11-09 09:52:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moson-mo";
|
|
|
|
repo = "cryptor";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-01-27 12:55:04 +00:00
|
|
|
hash = "sha256-EqiaWgwhSLwZnovqYQ9rfHwvhWucmK0ujSsOhMJEJ1A=";
|
2023-11-09 09:52:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeBinaryWrapper
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2023-11-09 09:52:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/cryptor \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ gocryptfs ]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple gocryptfs GUI";
|
|
|
|
homepage = "https://github.com/moson-mo/cryptor";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
mainProgram = "cryptor";
|
|
|
|
maintainers = with lib.maintainers; [ fgaz ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|