sops: refactor

This commit is contained in:
Defelo
2025-01-25 21:07:34 +01:00
parent bfbf286722
commit 363fc9dde8
+10 -5
View File
@@ -3,6 +3,7 @@
buildGo122Module,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
nix-update-script,
}:
@@ -32,8 +33,6 @@ buildGo122Module rec {
"-X github.com/getsops/sops/v3/version.Version=${version}"
];
passthru.updateScript = nix-update-script { };
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
@@ -41,15 +40,21 @@ buildGo122Module rec {
installShellCompletion --cmd sops --zsh ${./zsh_autocomplete}
'';
meta = with lib; {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://getsops.io/";
description = "Simple and flexible tool for managing secrets";
changelog = "https://github.com/getsops/sops/blob/v${version}/CHANGELOG.rst";
mainProgram = "sops";
maintainers = with maintainers; [
maintainers = with lib.maintainers; [
Scrumplex
mic92
];
license = licenses.mpl20;
license = lib.licenses.mpl20;
};
}