Skip to content

Commit

Permalink
ory: init at 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
luleyleo committed Jan 3, 2024
1 parent 8f3c9de commit 0f5af6f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/by-name/or/ory/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:

buildGoModule rec {
pname = "ory";
version = "0.2.2";

src = fetchFromGitHub {
owner = "ory";
repo = "cli";
rev = "refs/tags/v${version}";
hash = "sha256-5N69/Gv4eYLbZNN+sEx+RcFyhGCT0hUxDCje1qrbWiY=";
};

nativeBuildInputs = [
installShellFiles
];

subPackages = [ "." ];

CGO_ENABLED = 1;

tags = [
"sqlite"
];

vendorHash = "sha256-J9jyeLIT+1pFnHOUHrzmblVCJikvY05Sw9zMz5qaDOk=";

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";
homepage = "https://www.ory.sh/";
license = licenses.asl20;
maintainers = with maintainers; [ luleyleo ];
};
}

0 comments on commit 0f5af6f

Please sign in to comment.