571c71e6f7
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.
39 lines
901 B
Nix
39 lines
901 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "vouch-proxy";
|
|
version = "0.41.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vouch";
|
|
repo = "vouch-proxy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-HQ1NaAHY1YRbNUThW983V8x3ptzTc/zNP6yIMyDiq1s=";
|
|
};
|
|
|
|
vendorHash = "sha256-1k9YFdackF10iJWJ22XlaENlOfRkZMs+IedDWnd/h8E=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
preCheck = ''
|
|
export VOUCH_ROOT=$PWD
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/vouch/vouch-proxy";
|
|
description = "SSO and OAuth / OIDC login solution for NGINX using the auth_request module";
|
|
changelog = "https://github.com/vouch/vouch-proxy/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ leona erictapen ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "vouch-proxy";
|
|
};
|
|
}
|