mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
optinix: init at 0.1.1
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
This commit is contained in:
parent
14ebe4e318
commit
e48164578b
36
pkgs/by-name/op/optinix/package.nix
Normal file
36
pkgs/by-name/op/optinix/package.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitLab,
|
||||
buildGoModule,
|
||||
installShellFiles,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "optinix";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "hmajid2301";
|
||||
repo = "optinix";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-bRHesc03jExIL29BCP93cMbx+BOT4sHCu58JjpmRaeA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-uSFEhRWvJ83RGpekPJL9MOYJy2NfgVdZxuaNUMq3VaE=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd optinix \
|
||||
--bash <($out/bin/optinix completion bash) \
|
||||
--fish <($out/bin/optinix completion fish) \
|
||||
--zsh <($out/bin/optinix completion zsh)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Tool for searching options in Nix";
|
||||
homepage = "https://gitlab.com/hmajid2301/optinix";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ hmajid2301 ];
|
||||
mainProgram = "optinix";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user