From 0f5af6f6b7f67265520b42a351f5f445a383cf43 Mon Sep 17 00:00:00 2001 From: Leopold Luley Date: Wed, 3 Jan 2024 13:50:54 +0100 Subject: [PATCH] ory: init at 0.2.2 --- pkgs/by-name/or/ory/package.nix | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/or/ory/package.nix diff --git a/pkgs/by-name/or/ory/package.nix b/pkgs/by-name/or/ory/package.nix new file mode 100644 index 000000000000..9c1aff24e6fd --- /dev/null +++ b/pkgs/by-name/or/ory/package.nix @@ -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 ]; + }; +}