fixed the repo2text
This commit is contained in:
parent
580ecfe501
commit
5d6917f78d
23
home.nix
23
home.nix
@ -1,5 +1,6 @@
|
|||||||
# home.nix
|
# home.nix
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
customPackages = import ./users/jeirmeister/packages { inherit pkgs; };
|
customPackages = import ./users/jeirmeister/packages { inherit pkgs; };
|
||||||
in
|
in
|
||||||
@ -12,7 +13,7 @@ in
|
|||||||
username = "jeirmeister";
|
username = "jeirmeister";
|
||||||
homeDirectory = "/home/jeirmeister";
|
homeDirectory = "/home/jeirmeister";
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
htop
|
htop
|
||||||
fortune
|
fortune
|
||||||
@ -26,35 +27,35 @@ in
|
|||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
immersed
|
immersed
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
customPackages.repo2text
|
(customPackages.repo2text) # Try wrapping in parentheses
|
||||||
|
|
||||||
# Development tools
|
# Development tools
|
||||||
nodejs
|
nodejs
|
||||||
yarn
|
yarn
|
||||||
python3
|
python3
|
||||||
gcc
|
gcc
|
||||||
rustup
|
rustup
|
||||||
|
|
||||||
# System tools
|
# System tools
|
||||||
btop # Better top
|
btop
|
||||||
neofetch
|
neofetch
|
||||||
bat # Better cat
|
bat
|
||||||
fzf # Fuzzy finder
|
fzf
|
||||||
|
|
||||||
# Network tools
|
# Network tools
|
||||||
mtr
|
mtr
|
||||||
iperf3
|
iperf3
|
||||||
nmap
|
nmap
|
||||||
|
|
||||||
# File management
|
# File management
|
||||||
unzip
|
unzip
|
||||||
p7zip
|
p7zip
|
||||||
file
|
file
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
@ -63,4 +64,4 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -2,5 +2,5 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
repo2txt = pkgs.callPackage ./repo2txt.nix {};
|
repo2text = pkgs.callPackage ./repo2text.nix {};
|
||||||
}
|
}
|
@ -1,24 +1,26 @@
|
|||||||
# users/jeirmeister/packages/repo2text.nix
|
# users/jeirmeister/packages/repo2text.nix
|
||||||
{ pkgs }:
|
{ lib
|
||||||
|
, python3Packages
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
pkgs.python3Packages.buildPythonPackage rec {
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "repo2text";
|
pname = "repo2text";
|
||||||
version = "0.1.5"; # Check PyPI for the latest version
|
version = "0.1.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = pkgs.fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "8c1e338c32154b118fc9eaa686fcdb024eb075b05ce32f7fcba51cde0a57bf26"; # You might need to update this
|
sha256 = "nH/sLxittYMaIrlqh84PCxzMh7scSvYq7o6E3Edm9RI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
gitpython # Required dependency
|
gitpython
|
||||||
];
|
];
|
||||||
|
|
||||||
# Add some basic tests
|
|
||||||
pythonImportsCheck = [ "repo2text" ];
|
pythonImportsCheck = [ "repo2text" ];
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with lib; {
|
||||||
description = "Convert code repositories into text format for LLM processing";
|
description = "Convert code repositories into text format for LLM processing";
|
||||||
homepage = "https://pypi.org/project/repo2text/";
|
homepage = "https://pypi.org/project/repo2text/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
Reference in New Issue
Block a user