char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
9c1ba5573
char/aliceai-t5-moe
1{ inputs , ...} : 2 3{ 4perSystem = 5{ 6config , 7lib , 8system , 9 ... 10} : 11{ 12devShells = 13let 14pkgs = import inputs . nixpkgs { inherit system ; }; 15stdenv = pkgs . stdenv ; 16scripts = config . packages . python-scripts ; 17in 18lib . pipe ( config . packages ) [ 19( lib . concatMapAttrs ( 20name :package :{ 21${ name } = pkgs . mkShell { 22name = " ${ name } " ; 23inputsFrom = [ package ]; 24shellHook = '' 25echo "Entering ${ name } devShell " 26'' ; 27}; 28" ${ name } -extra" = 29if ( name == "python-scripts" ) then 30null 31else 32pkgs . mkShell { 33name = " ${ name } -extra" ; 34inputsFrom = [ 35package 36scripts 37]; 38# Extra packages that *may* be used by some scripts 39packages = [ 40pkgs . python3Packages . tiktoken 41]; 42shellHook = '' 43echo "Entering ${ name } devShell " 44addToSearchPath " LD_LIBRARY_PATH " " ${ lib . getLib stdenv . cc . cc } /lib " 45'' ; 46}; 47} 48)) 49( lib . filterAttrs ( name :value :value != null )) 50]; 51}; 52}