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