Files
nixpkgs/pkgs/by-name/en/enc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.6 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
git,
installShellFiles,
}:
buildGoModule rec {
pname = "enc";
version = "1.1.4";
src = fetchFromGitHub {
owner = "life4";
repo = "enc";
rev = version;
hash = "sha256-6CUSJCE37R6nypqxTEs4tk/Eqg7+ZNGKPit38Zz3r84=";
};
vendorHash = "sha256-LK4WMz6AtFotUklim+ewK+pRn22UjBGxfqP7jBMWCNA=";
nativeBuildInputs = [ installShellFiles ];
subPackages = ".";
ldflags = [
"-s"
"-w"
"-X github.com/life4/enc/version.GitCommit=${version}"
];
nativeCheckInputs = [ git ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd enc \
--bash <($out/bin/enc completion bash) \
--fish <($out/bin/enc completion fish) \
--zsh <($out/bin/enc completion zsh)
'';
meta = {
homepage = "https://github.com/life4/enc";
changelog = "https://github.com/life4/enc/releases/tag/v${version}";
description = "Modern and friendly alternative to GnuPG";
mainProgram = "enc";
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ rvnstn ];
};
}