nixpkgs/pkgs/by-name/ke/keto/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
951 B
Nix
Raw Permalink Normal View History

2024-05-08 17:38:29 +02:00
{
fetchFromGitHub,
buildGoModule,
lib,
}:
let
pname = "keto";
2025-03-06 13:32:18 +00:00
version = "0.14.0";
commit = "613779b6dad89f6fb6b4fa6968f13ede11963c97";
2024-05-08 17:38:29 +02:00
in
buildGoModule {
inherit pname version commit;
src = fetchFromGitHub {
owner = "ory";
repo = "keto";
rev = "v${version}";
2025-03-06 13:32:18 +00:00
hash = "sha256-DQiE7PvRnOzdRITRl7LgUDmCJO5/aUzbFdEIyiofZfU=";
2024-05-08 17:38:29 +02:00
};
2025-03-06 13:32:18 +00:00
vendorHash = "sha256-deQxdG3HZiMzzwTr6moILBSNeNR/3noFlJlIx1eyBZs=";
2024-05-08 17:38:29 +02:00
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 ];
};
}