2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "enc";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.1.3";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "life4";
|
|
|
|
repo = "enc";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-G6x17CDAKpmqvl7FTycSQ5bF0JndNP+SlUoBVUk76IQ=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
vendorHash = "sha256-lB4DoHB+hGKjIcrAjeCd8a5prTn8XFIWhzNakA7utHI=";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
subPackages = ".";
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/life4/enc/version.GitCommit=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd enc \
|
|
|
|
--bash <($out/bin/enc completion bash) \
|
|
|
|
--fish <($out/bin/enc completion fish) \
|
|
|
|
--zsh <($out/bin/enc completion zsh)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/life4/enc";
|
|
|
|
changelog = "https://github.com/life4/enc/releases/tag/v${version}";
|
|
|
|
description = "A modern and friendly alternative to GnuPG";
|
|
|
|
longDescription = ''
|
|
|
|
Enc is a CLI tool for encryption, a modern and friendly alternative to GnuPG.
|
|
|
|
It is easy to use, secure by default and can encrypt and decrypt files using password or encryption keys,
|
|
|
|
manage and download keys, and sign data.
|
|
|
|
Our goal was to make encryption available to all engineers without the need to learn a lot of new words, concepts,
|
|
|
|
and commands. It is the most beginner-friendly CLI tool for encryption, and keeping it that way is our top priority.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rvnstn ];
|
|
|
|
};
|
|
|
|
}
|