2025-02-22 18:08:09 -06:00
|
|
|
{ version, hash }:
|
2025-02-06 11:52:45 -06:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
|
|
|
|
# deps
|
|
|
|
prompt_toolkit,
|
|
|
|
pygments,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
2025-02-22 18:08:09 -06:00
|
|
|
buildPythonPackage {
|
|
|
|
inherit version;
|
2025-02-06 11:52:45 -06:00
|
|
|
pname = "llm-cmd";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
|
|
|
repo = "llm-cmd";
|
|
|
|
rev = version;
|
2025-02-22 18:08:09 -06:00
|
|
|
inherit hash;
|
2025-02-06 11:52:45 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2025-02-07 15:47:52 -06:00
|
|
|
prompt_toolkit
|
|
|
|
pygments
|
2025-02-06 11:52:45 -06:00
|
|
|
];
|
|
|
|
|
|
|
|
dontCheckRuntimeDeps = true;
|
|
|
|
}
|