nixpkgs/pkgs/by-name/ar/argocd-vault-plugin/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

47 lines
1.4 KiB
Nix

{ buildGoModule
, fetchFromGitHub
, lib
, testers
, argocd-vault-plugin
}:
buildGoModule rec {
pname = "argocd-vault-plugin";
version = "1.18.1";
src = fetchFromGitHub {
owner = "argoproj-labs";
repo = pname;
rev = "v${version}";
hash = "sha256-rWNR4GVivuEprdX/xhwk/9SReeJ19UWDWx8Bf8z6CTI=";
};
vendorHash = "sha256-iZ3WWM5p0UuKpdLq6wczLtgX01q6Vtx8j/XCAH+4POs=";
ldflags = [
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.Version=v${version}"
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.BuildDate=1970-01-01T00:00:00Z"
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.CommitSHA=unknown"
];
# integration tests require filesystem and network access for credentials
doCheck = false;
doInstallCheck = true;
passthru.tests.version = testers.testVersion {
package = argocd-vault-plugin;
command = "argocd-vault-plugin version";
version = "argocd-vault-plugin v${version} (unknown) BuildDate: 1970-01-01T00:00:00Z";
};
meta = with lib; {
homepage = "https://argocd-vault-plugin.readthedocs.io";
changelog = "https://github.com/argoproj-labs/argocd-vault-plugin/releases/tag/v${version}";
description = "Argo CD plugin to retrieve secrets from Secret Management tools and inject them into Kubernetes secrets";
mainProgram = "argocd-vault-plugin";
license = licenses.asl20;
maintainers = with maintainers; [ urandom ];
};
}