Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
967 B · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, click, setuptools, fetchFromGitHub, buildPythonPackage, pytestCheckHook, versionCheckHook,}:
buildPythonPackage rec { pname = "files-to-prompt"; version = "0.6"; pyproject = true;
src = fetchFromGitHub { owner = "simonw"; repo = "files-to-prompt"; tag = version; hash = "sha256-LWp/DNP3bsh7/goQGkpi4x2N11tRuhLVh2J8H6AUH0w="; };
build-system = [ setuptools ];
dependencies = [ click ];
nativeCheckInputs = [ pytestCheckHook versionCheckHook ];
versionCheckProgramArg = "--version";
meta = { mainProgram = "files-to-prompt"; description = "Concatenate a directory full of files into a single prompt for use with LLMs"; homepage = "https://github.com/simonw/files-to-prompt"; changelog = "https://github.com/simonw/files-to-prompt/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ erethon philiptaron ]; };}