Skip to content

Commit

Permalink
update docs, add systemdlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetrucciani committed Apr 4, 2024
1 parent 708a49e commit b6a6a77
Show file tree
Hide file tree
Showing 55 changed files with 243 additions and 70 deletions.
55 changes: 55 additions & 0 deletions mods/python/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,61 @@ let
inherit (final.pkgs) fetchFromGitHub rustPlatform autoPatchelfHook bash;
in
rec {
systemdunitparser = buildPythonPackage rec {
pname = "systemdunitparser";
version = "0.2";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-GgcqTlX8VXOCPgqRBJcWTbltnhZkiw9UDVRs1Vkd6Q4=";
};

nativeBuildInputs = with final; [
setuptools
wheel
];

pythonImportsCheck = [ "SystemdUnitParser" ];

meta = {
description = "Parser to read and create unit files for systemd";
homepage = "https://pypi.org/project/systemdunitparser/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jpetrucciani ];
};
};

systemdlint = buildPythonPackage rec {
pname = "systemdlint";
version = "1.3.0";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-iJqWXL1lKc6CY3TRH2GB5CarmEYhSJdNeJCWO/28MOA=";
};

nativeBuildInputs = with final;[
setuptools
wheel
];

propagatedBuildInputs = with final;[
anytree
systemdunitparser
];

pythonImportsCheck = [ "systemdlint" ];

meta = {
description = "Systemd Unitfile Linter";
homepage = "https://pypi.org/project/systemdlint/";
maintainers = with maintainers; [ jpetrucciani ];
mainProgram = "systemdlint";
};
};

tesla-py = buildPythonPackage rec {
pname = "tesla-py";
version = "2.9.0";
Expand Down
16 changes: 6 additions & 10 deletions pkgs/ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ This directory contains packages that are related to the new wave of AI/LLM popu

## In this directory

### [alpaca-cpp.nix](./alpaca-cpp.nix)

[`alpaca.cpp`](https://github.com/antimatter15/alpaca.cpp) is a popular fork of [`llama.cpp`](https://github.com/ggerganov/llama.cpp) that is tuned for specifically running [Alpaca](https://crfm.stanford.edu/2023/03/13/alpaca.html) models.

### [betterchatgpt.nix](./betterchatgpt.nix)

[`BetterChatGPT`](https://github.com/ztjhz/BetterChatGPT) is an alternative UI for OpenAI's ChatGPT.
Expand All @@ -18,13 +14,13 @@ This directory contains packages that are related to the new wave of AI/LLM popu

[`chatbot-ui`](https://github.com/mckaywrigley/chatbot-ui) is a popular frontend for OpenAI compliant APIs. It is designed to look similar to OpenAI's ChatGPT UI.

### [falcon-cpp.nix](./falcon-cpp.nix)
### [koboldcpp.nix](./koboldcpp.nix)

[`falcon.cpp`](https://github.com/nikisalli/falcon.cpp) is a port of llama-cpp that works with falcon models
[koboldcpp](https://github.com/LostRuins/koboldcpp) is a fork of llama-cpp based on backwards compatibility

### [llama-cpp.nix](./llama-cpp.nix)
### [latent-consistency.nix](./latent-consistency.nix)

[`llama.cpp`](https://github.com/ggerganov/llama.cpp) is a port of [Facebook's LLaMA](https://ai.facebook.com/blog/large-language-model-llama-meta-ai/) model in C/C++
latent consistency helper

### [llm.nix](./llm.nix)

Expand All @@ -34,9 +30,9 @@ This directory contains packages that are related to the new wave of AI/LLM popu

[`mods`](https://github.com/charmbracelet/mods) is a CLI tool to interact with AI APIs

### [starcoder-cpp.nix](./starcoder-cpp.nix)
### [tenere.nix](./tenere.nix)

[`starcoder.cpp`](https://github.com/bigcode-project/starcoder.cpp) is a c++ implementation of [Starcoder](https://huggingface.co/blog/starcoder) using [ggml](https://github.com/ggerganov/ggml)
[tenere](https://github.com/pythops/tenere) is a TUI interface for LLMs

### [whisper-cpp.nix](./whisper-cpp.nix)

Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/betterchatgpt.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [`BetterChatGPT`](https://github.com/ztjhz/BetterChatGPT) is an alternative UI for OpenAI's ChatGPT.
{ fetchFromGitHub, mkYarnPackage, cname ? "meme.com" }:
let
pname = "BetterChatGPT";
Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/chatbot-ui.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [`chatbot-ui`](https://github.com/mckaywrigley/chatbot-ui) is a popular frontend for OpenAI compliant APIs. It is designed to look similar to OpenAI's ChatGPT UI.
{ fetchFromGitHub, buildNpmPackage, fetchpatch, bash }:
let
src = fetchFromGitHub {
Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/koboldcpp.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [koboldcpp](https://github.com/LostRuins/koboldcpp) is a fork of llama-cpp based on backwards compatibility
{ lib
, darwin
, stdenv
Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/latent-consistency.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# latent consistency helper
{ pog, python311, writeTextFile }:
let
script = writeTextFile {
Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/llm.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [`llm`](https://github.com/rustformers/llm) is a port of [`llama.cpp`](https://github.com/ggerganov/llama.cpp) in rust!
{ lib, stdenv, darwin, fetchFromGitHub, rustPlatform, openssl, pkg-config }:
let
inherit (stdenv) isAarch64 isDarwin;
Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/mods.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [`mods`](https://github.com/charmbracelet/mods) is a CLI tool to interact with AI APIs
{ lib
, buildGoModule
, fetchFromGitHub
Expand Down
37 changes: 0 additions & 37 deletions pkgs/ai/starcoder-cpp.nix

This file was deleted.

7 changes: 4 additions & 3 deletions pkgs/ai/tenere.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [tenere](https://github.com/pythops/tenere) is a TUI interface for LLMs
{ lib
, rustPlatform
, fetchFromGitHub
Expand All @@ -11,16 +12,16 @@

rustPlatform.buildRustPackage rec {
pname = "tenere";
version = "0.11";
version = "0.11.1";

src = fetchFromGitHub {
owner = "pythops";
repo = "tenere";
rev = "v${version}";
hash = "sha256-Dug7sKILFn+m1OtXNjALXiaF6ryJ5Czb59Bfsd9zQ80=";
hash = "sha256-uvv7URcdpKBUc04LsEigjt7iQhiEgiglBP5iwH6bQRI=";
};

cargoHash = "sha256-56kFJgDAPoZ8y/e7kqkAIcb36aVVRmUBD0wElklaJII=";
cargoHash = "sha256-mz/lRh5+GWQrU7w2P4J3KV9Fz8rvc14JswPKO5UxrIs=";

nativeBuildInputs = [
pkg-config
Expand Down
1 change: 1 addition & 0 deletions pkgs/ai/whisper-cpp.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [`whisper.cpp`](https://github.com/ggerganov/whisper.cpp) is a port of [OpenAI's Whisper](https://openai.com/research/whisperg) model in C/C++
{ lib
, symlinkJoin
, darwin
Expand Down
62 changes: 62 additions & 0 deletions pkgs/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,74 @@ This directory contains cli tools

## In this directory

### [anakin.nix](./anakin.nix)

[anakin](https://github.com/Timmmm/anakin/) is a tool to kill orphan processes

### [bkt.nix](./bkt.nix)

[bkt](https://github.com/dimo414/bkt) is a subprocess caching utility

### [bonk.nix](./bonk.nix)

[bonk](https://github.com/elliot40404/bonk) is an alternative to the touch command

### [comcast.nix](./comcast.nix)

[comcast](https://github.com/tylertreat/comcast) is a tool to help in simulating shitty network connections

### [dep-tree.nix](./dep-tree.nix)

[dep-tree](https://github.com/gabotechs/dep-tree) allows visualizing code base dependencies

### [dirdiff.nix](./dirdiff.nix)

[dirdiff](https://github.com/ocamlpro/dirdiff) is a tool to compute the differences between two directories

### [hunt.nix](./hunt.nix)

[hunt](https://github.com/LyonSyonII/hunt-rs) is a simplified find command in rust

### [lastresort.nix](./lastresort.nix)

[lastresort](https://github.com/ctsrc/Base256) is a base256 encoder/decoder

### [ov.nix](./ov.nix)

[ov](https://github.com/noborus/ov) is a Feature-rich terminal-based text viewer.

### [pql.nix](./pql.nix)

[pql](https://github.com/runreveal/pql) is a pipeline to sql tool

### [pypipe.nix](./pypipe.nix)

[pypipe](https://github.com/bugen/pypipe) is a python pipe cli tool

### [rare.nix](./rare.nix)

[rare](https://github.com/zix99/rare) is a realtime regex extraction and aggregation cli tool

### [sideko.nix](./sideko.nix)

[sideko](https://github.com/Sideko-Inc/sideko) is a tool to generate SDKs and docs for APIs

### [slack-notifier.nix](./slack-notifier.nix)

[slack-notifier](https://github.com/cloudposse/slack-notifier) is a cli util to send slack messages

### [supabase-cli-beta.nix](./supabase-cli-beta.nix)

[supabase-cli](https://github.com/supabase/cli) is the main CLI interface for [supabase](https://supabase.com)

### [tlsh-go.nix](./tlsh-go.nix)

[tlsh](https://github.com/glaslos/tlsh) is a tlsh implementation in go

### [uesave-rs.nix](./uesave-rs.nix)

[uesave](https://github.com/trumank/uesave-rs) is a rust library for reading and writing UE save files

### [xlsxsql.nix](./xlsxsql.nix)

[xlsxsql](https://github.com/noborus/xlsxsql) is a cli tool for executing SQL queries on excel files
1 change: 1 addition & 0 deletions pkgs/cli/anakin.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [anakin](https://github.com/Timmmm/anakin/) is a tool to kill orphan processes
{ lib
, rustPlatform
, fetchFromGitHub
Expand Down
1 change: 1 addition & 0 deletions pkgs/cli/bkt.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [bkt](https://github.com/dimo414/bkt) is a subprocess caching utility
{ lib, fetchFromGitHub, rustPlatform }:
let
pname = "bkt";
Expand Down
1 change: 1 addition & 0 deletions pkgs/cli/bonk.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [bonk](https://github.com/elliot40404/bonk) is an alternative to the touch command
{ lib
, rustPlatform
, fetchFromGitHub
Expand Down
5 changes: 3 additions & 2 deletions pkgs/cli/comcast.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# [comcast](https://github.com/tylertreat/comcast) is a tool to help in simulating shitty network connections
{ lib, buildGo122Module, fetchFromGitHub }:
buildGo122Module rec {
buildGo122Module {
pname = "comcast";
version = "1.0.1";

Expand All @@ -17,8 +18,8 @@ buildGo122Module rec {
doCheck = false;

meta = with lib; {
inherit (src.meta) homepage;
description = "Simulating shitty network connections so you can build better systems";
homepage = "https://github.com/tylertreat/comcast";
license = licenses.asl20;
mainProgram = "comcast";
maintainers = with maintainers; [ jpetrucciani ];
Expand Down
1 change: 1 addition & 0 deletions pkgs/cli/dep-tree.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [dep-tree](https://github.com/gabotechs/dep-tree) allows visualizing code base dependencies
{ lib
, buildGoModule
, fetchFromGitHub
Expand Down
1 change: 1 addition & 0 deletions pkgs/cli/dirdiff.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [dirdiff](https://github.com/ocamlpro/dirdiff) is a tool to compute the differences between two directories
{ lib, fetchFromGitHub, rustPlatform, ... }:
let
pname = "dirdiff";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/cli/hunt.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [hunt](https://github.com/LyonSyonII/hunt-rs) is a simplified find command in rust
{ lib, fetchFromGitHub, rustPlatform }:
let
pname = "hunt";
Expand All @@ -17,6 +18,7 @@ rustPlatform.buildRustPackage rec {

meta = with lib; {
description = "simplified find command made with rust";
homepage = "https://github.com/LyonSyonII/hunt-rs";
license = licenses.mit;
mainProgram = "hunt";
maintainers = with maintainers; [ jpetrucciani ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/cli/lastresort.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [lastresort](https://github.com/ctsrc/Base256) is a base256 encoder/decoder
{ lib, fetchFromGitHub, rustPlatform }:
let
pname = "lastresort";
Expand All @@ -17,6 +18,7 @@ rustPlatform.buildRustPackage rec {

meta = with lib; {
description = "Encode and decode data in base 256 easily typed words";
homepage = "https://github.com/ctsrc/Base256";
license = licenses.isc;
mainProgram = "lastresort";
maintainers = with maintainers; [ jpetrucciani ];
Expand Down
3 changes: 2 additions & 1 deletion pkgs/cli/ov.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [ov](https://github.com/noborus/ov) is a Feature-rich terminal-based text viewer.
{ lib, buildGo122Module, fetchFromGitHub, installShellFiles }:
buildGo122Module rec {
pname = "ov";
Expand Down Expand Up @@ -28,8 +29,8 @@ buildGo122Module rec {
'';

meta = with lib; {
inherit (src.meta) homepage;
description = "Feature-rich terminal-based text viewer";
homepage = "https://github.com/noborus/ov";
license = licenses.mit;
mainProgram = "ov";
maintainers = with maintainers; [ jpetrucciani ];
Expand Down
1 change: 1 addition & 0 deletions pkgs/cli/pql.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [pql](https://github.com/runreveal/pql) is a pipeline to sql tool
{ lib
, buildGoModule
, fetchFromGitHub
Expand Down
3 changes: 2 additions & 1 deletion pkgs/cli/pypipe.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [pypipe](https://github.com/bugen/pypipe) is a python pipe cli tool
{ lib
, stdenv
, fetchFromGitHub
Expand All @@ -24,8 +25,8 @@ stdenv.mkDerivation rec {
'';

meta = with lib; {
homepage = "https://github.com/bugen/pypipe";
description = "Python pipe command line tool";
homepage = "https://github.com/bugen/pypipe";
mainProgram = "ppp";
license = licenses.asl20;
maintainers = with maintainers; [ jpetrucciani ];
Expand Down
3 changes: 2 additions & 1 deletion pkgs/cli/rare.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# [rare](https://github.com/zix99/rare) is a realtime regex extraction and aggregation cli tool
{ lib, buildGo122Module, fetchFromGitHub }:
buildGo122Module rec {
pname = "rare";
Expand All @@ -13,9 +14,9 @@ buildGo122Module rec {
vendorHash = "sha256-wUOtxNjL/4MosACCzPTWKWrnMZhxINfN1ppkRsqDh9M=";

meta = with lib; {
inherit (src.meta) homepage;
description =
"Realtime regex-extraction and aggregation into common formats such as histograms, bar graphs, numerical summaries, tables, and more";
homepage = "https://github.com/zix99/rare";
license = licenses.gpl3Only;
mainProgram = "rare";
maintainers = with maintainers; [ jpetrucciani ];
Expand Down
Loading

0 comments on commit b6a6a77

Please sign in to comment.