mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
ory: init at 0.2.2
This commit is contained in:
parent
8f3c9dec12
commit
0f5af6f6b7
43
pkgs/by-name/or/ory/package.nix
Normal file
43
pkgs/by-name/or/ory/package.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user