mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
44 lines
942 B
Nix
44 lines
942 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ory";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ory";
|
|
repo = "cli";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-q7+Fpttgx62GbKxCCiEDlX//e/pNO24e7KhhBeGRDH0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
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; {
|
|
mainProgram = "ory";
|
|
description = "Ory CLI";
|
|
homepage = "https://www.ory.sh/cli";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ luleyleo nicolas-goudry ];
|
|
};
|
|
}
|