Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
buildGoModule,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "optinix";
|
|
version = "0.1.4";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "hmajid2301";
|
|
repo = "optinix";
|
|
tag = "v${version}";
|
|
hash = "sha256-OuzLTygfJj1ILT0lAcBC28vU5YLuq0ErZHsLHoQNWBA=";
|
|
};
|
|
|
|
vendorHash = "sha256-gnxG4VqdZbGQyXc1dl3pU7yr3BbZPH17OLAB3dffcrk=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd optinix \
|
|
--bash <($out/bin/optinix completion bash) \
|
|
--fish <($out/bin/optinix completion fish) \
|
|
--zsh <($out/bin/optinix completion zsh)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Tool for searching options in Nix";
|
|
homepage = "https://gitlab.com/hmajid2301/optinix";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
hmajid2301
|
|
brianmcgillion
|
|
];
|
|
changelog = "https://gitlab.com/hmajid2301/optinix/-/releases/v${version}";
|
|
mainProgram = "optinix";
|
|
};
|
|
}
|