blob: ff604a8f1ba9f2876fe71001af50ce6b513e56e2 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "ory";
version = "0.3.4";
src = fetchFromGitHub {
owner = "ory";
repo = "cli";
tag = "v${version}";
hash = "sha256-q7+Fpttgx62GbKxCCiEDlX//e/pNO24e7KhhBeGRDH0=";
};
nativeBuildInputs = [
installShellFiles
];
subPackages = [ "." ];
env.CGO_ENABLED = 1;
tags = [
"sqlite"
];
vendorHash = "sha256-B0y1JVjJmC5eitn7yIcDpl+9+xaBDJBMdvm+7N/ZxTk=";
postInstall = ''
mv $out/bin/cli $out/bin/ory
installShellCompletion --cmd ory \
--bash <($out/bin/ory completion bash) \
--fish <($out/bin/ory completion fish) \
--zsh <($out/bin/ory completion zsh)
'';
meta = with lib; {
description = "CLI for Ory";
mainProgram = "ory";
homepage = "https://www.ory.sh/cli";
license = licenses.asl20;
maintainers = with maintainers; [
luleyleo
nicolas-goudry
];
};
}
|