depot/third_party/nixpkgs/pkgs/by-name/cr/cryptor/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

55 lines
961 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, makeBinaryWrapper
, meson
, ninja
, pkg-config
, vala
, wrapGAppsHook3
, gocryptfs
, gtk3
, json-glib
, libgee
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cryptor";
version = "1.1.0";
src = fetchFromGitHub {
owner = "moson-mo";
repo = "cryptor";
rev = "v${finalAttrs.version}";
hash = "sha256-EqiaWgwhSLwZnovqYQ9rfHwvhWucmK0ujSsOhMJEJ1A=";
};
nativeBuildInputs = [
makeBinaryWrapper
meson
ninja
pkg-config
vala
wrapGAppsHook3
];
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;
};
})