mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
46 lines
959 B
Nix
46 lines
959 B
Nix
{
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
lib,
|
|
}:
|
|
let
|
|
pname = "keto";
|
|
version = "0.13.0-alpha.0";
|
|
commit = "c75695837f170334b526359f28967aa33d61bce6";
|
|
in
|
|
buildGoModule {
|
|
inherit pname version commit;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ory";
|
|
repo = "keto";
|
|
rev = "v${version}";
|
|
hash = "sha256-0yylaaXogN2HWXY8Tb7ScN4jdyeHecJ0gBYlVvcwaNE=";
|
|
};
|
|
|
|
vendorHash = "sha256-lgwV4Ysjmd9e850Rf5c0wSZtMW3U34/piwwG7dQEUV4=";
|
|
|
|
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 ];
|
|
};
|
|
}
|