Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
951 B
Nix
46 lines
951 B
Nix
{
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
lib,
|
|
}:
|
|
let
|
|
pname = "keto";
|
|
version = "0.14.0";
|
|
commit = "613779b6dad89f6fb6b4fa6968f13ede11963c97";
|
|
in
|
|
buildGoModule {
|
|
inherit pname version commit;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ory";
|
|
repo = "keto";
|
|
rev = "v${version}";
|
|
hash = "sha256-DQiE7PvRnOzdRITRl7LgUDmCJO5/aUzbFdEIyiofZfU=";
|
|
};
|
|
|
|
vendorHash = "sha256-deQxdG3HZiMzzwTr6moILBSNeNR/3noFlJlIx1eyBZs=";
|
|
|
|
tags = [
|
|
"sqlite"
|
|
"json1"
|
|
"hsm"
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
# Pass versioning information via ldflags
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/ory/keto/internal/driver/config.Version=${version}"
|
|
"-X github.com/ory/keto/internal/driver/config.Commit=${commit}"
|
|
];
|
|
|
|
meta = {
|
|
description = "ORY Keto, the open source access control server";
|
|
homepage = "https://www.ory.sh/keto/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ mrmebelman ];
|
|
};
|
|
}
|