feat(packages): Added free coding models for my opencode
This commit is contained in:
1 parent
1cbab3e494
commit
605bd8e6e8
2 files changed
+67
-1
No files matched your search
@@ -1,4 +1,11 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
free-coding-models = import ./free-coding-models.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
#jetbrains.idea-oss
|
#jetbrains.idea-oss
|
||||||
android-studio
|
android-studio
|
||||||
@@ -6,6 +13,7 @@
|
|||||||
git
|
git
|
||||||
tree
|
tree
|
||||||
opencode
|
opencode
|
||||||
|
free-coding-models
|
||||||
postgresql
|
postgresql
|
||||||
dbgate
|
dbgate
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,58 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pnpm = pkgs.pnpm_10;
|
||||||
|
in
|
||||||
|
pkgs.stdenv.mkDerivation rec {
|
||||||
|
pname = "free-coding-models";
|
||||||
|
version = "0.5.97";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "vava-nessa";
|
||||||
|
repo = "free-coding-models";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-1jjEBKoNUslrJEDNuqEQ7dHHiecJ3urOdH7MRrdhD1E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.nodejs
|
||||||
|
pkgs.makeWrapper
|
||||||
|
pkgs.pnpmConfigHook
|
||||||
|
pnpm
|
||||||
|
];
|
||||||
|
|
||||||
|
pnpmDeps = pkgs.fetchPnpmDeps {
|
||||||
|
inherit pname version src pnpm;
|
||||||
|
|
||||||
|
fetcherVersion = 4;
|
||||||
|
|
||||||
|
hash = "sha256-TYOXu2XAdoLqbJPB8idemkWcxahs4+Z6UXAnh3+C47o=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontNpmBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/lib/node_modules/free-coding-models
|
||||||
|
cp -r . $out/lib/node_modules/free-coding-models
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s $out/lib/node_modules/free-coding-models/bin/free-coding-models.js \
|
||||||
|
$out/bin/free-coding-models
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/free-coding-models \
|
||||||
|
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.nodejs ]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Find, benchmark and install free coding LLM models";
|
||||||
|
homepage = "https://github.com/vava-nessa/free-coding-models";
|
||||||
|
license = pkgs.lib.licenses.mit;
|
||||||
|
mainProgram = "free-coding-models";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user