nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 794 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "nginx-sso"; 10 version = "0.27.6"; 11 12 src = fetchFromGitHub { 13 owner = "Luzifer"; 14 repo = "nginx-sso"; 15 rev = "v${version}"; 16 hash = "sha256-nYqk1VK6R9HH67NLQDUifW3AjIW5pjD1Jmf+cYH3SQo="; 17 }; 18 19 vendorHash = "sha256-KflzlrjOOTDZQq2yP0zQsDgULrbnoeRRxOVHxKINsYw="; 20 21 postInstall = '' 22 mkdir -p $out/share 23 cp -R $src/frontend $out/share 24 ''; 25 26 passthru.tests = { 27 inherit (nixosTests) nginx-sso; 28 }; 29 30 meta = { 31 description = "SSO authentication provider for the auth_request nginx module"; 32 homepage = "https://github.com/Luzifer/nginx-sso"; 33 license = lib.licenses.asl20; 34 maintainers = with lib.maintainers; [ ambroisie ]; 35 mainProgram = "nginx-sso"; 36 }; 37}