nix/pkgs/ory-hydra.nix
2022-06-12 10:40:00 -04:00

29 lines
773 B
Nix

{ fetchFromGitHub, buildGoModule, lib, stdenv }:
buildGoModule rec {
pname = "ory-hydra";
version = "1.11.8";
src = fetchFromGitHub {
owner = "ory";
repo = "hydra";
rev = "v${version}";
sha256 = lib.fakeSha256;
};
vendorSha256 = lib.fakeSha256;
subPackages = [ "." ];
preBuild = ''
# patchShebangs doesn't work for this Makefile, do it manually
substituteInPlace Makefile --replace '/bin/bash' '${stdenv.shell}'
'';
meta = with lib; {
maintainers = with maintainers; [ thehedgeh0g ];
homepage = "https://www.ory.sh/hydra/";
license = licenses.asl20;
description = "OpenID Certified OAuth 2.0 Server and OpenID Connect Provider optimized for low-latency, high throughput, and low resource consumption";
};
}