diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 536332a8a12e..b4ba3d5c7584 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2154,6 +2154,12 @@ githubId = 58516559; name = "Alexander Rezvov"; }; + argos_nothing = { + email = "argosnothing@gmail.com"; + github = "argosnothing"; + githubId = 225423001; + name = "Argos Nothing"; + }; argrat = { email = "n.bertazzo@protonmail.com"; github = "brtz-cs"; diff --git a/pkgs/by-name/no/noogle-search/package.nix b/pkgs/by-name/no/noogle-search/package.nix new file mode 100644 index 000000000000..05191a1ed5ef --- /dev/null +++ b/pkgs/by-name/no/noogle-search/package.nix @@ -0,0 +1,55 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + makeWrapper, + bat, + fzf, + xdg-utils, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "noogle-search"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "argosnothing"; + repo = "noogle-search"; + tag = "v${finalAttrs.version}"; + hash = "sha256-js3jBZsyukleQW2BwggfYUvKCdS8pBTjD6ysWyMUtpI="; + }; + + cargoHash = "sha256-axqFE5ZEiVP8PzFTtW5mbyyYcR4q9g3LX/0i6y+cgy8="; + + nativeBuildInputs = [ + makeWrapper + pkg-config + ]; + + buildInputs = [ + openssl + ]; + + postInstall = '' + wrapProgram $out/bin/noogle-search \ + --prefix PATH : ${ + lib.makeBinPath [ + bat + fzf + xdg-utils + ] + } + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Search Noogle functions with fzf"; + homepage = "https://github.com/argosnothing/noogle-search"; + license = lib.licenses.gpl3Plus; + mainProgram = "noogle-search"; + maintainers = with lib.maintainers; [ argos_nothing ]; + }; +})