nixpkgs/pkgs/by-name/or/ory/package.nix

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

44 lines
946 B
Nix
Raw Normal View History

2024-01-03 15:50:54 +03:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "ory";
2024-02-11 13:04:21 +03:00
version = "0.3.4";
2024-01-03 15:50:54 +03:00
src = fetchFromGitHub {
owner = "ory";
repo = "cli";
rev = "refs/tags/v${version}";
2024-02-11 13:04:21 +03:00
hash = "sha256-q7+Fpttgx62GbKxCCiEDlX//e/pNO24e7KhhBeGRDH0=";
2024-01-03 15:50:54 +03:00
};
nativeBuildInputs = [
installShellFiles
];
subPackages = [ "." ];
CGO_ENABLED = 1;
tags = [
"sqlite"
];
2024-02-11 13:04:21 +03:00
vendorHash = "sha256-B0y1JVjJmC5eitn7yIcDpl+9+xaBDJBMdvm+7N/ZxTk=";
2024-01-03 15:50:54 +03:00
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; {
mainProgram = "ory";
description = "The Ory CLI";
2024-01-18 16:09:36 +03:00
homepage = "https://www.ory.sh/cli";
2024-01-03 15:50:54 +03:00
license = licenses.asl20;
2024-01-18 16:09:36 +03:00
maintainers = with maintainers; [ luleyleo nicolas-goudry ];
2024-01-03 15:50:54 +03:00
};
}