Removed pkgs functions

This commit is contained in:
Aleksandr Lebedev 2025-08-12 00:10:29 +02:00
parent ed48a77b93
commit 3ea3d96020
3 changed files with 2 additions and 31 deletions

View file

@ -1,29 +0,0 @@
{
channels,
namespace,
inputs,
lib,
...
}:
final: prev: let
inherit (lib.snowfall.fs) get-snowfall-file get-directories get-default-nix-files-recursive;
inherit (lib.attrsets) nameValuePair listToAttrs;
srcDir = get-snowfall-file "functions";
dirs = get-directories srcDir;
nixFiles =
lib.concatMap get-default-nix-files-recursive dirs;
functions = listToAttrs (map
(file:
let
dirName =
builtins.unsafeDiscardStringContext
(builtins.baseNameOf
(builtins.unsafeDiscardStringContext
(builtins.toString
(builtins.dirOf file))));
in
nameValuePair dirName (final.callPackage file {}))
nixFiles);
in
functions // {${namespace} = functions;}

View file

@ -1,11 +1,11 @@
{ {
writeCppScriptBin, custom,
lib, lib,
jq, jq,
deploy-rs, deploy-rs,
... ...
}: }:
writeCppScriptBin { custom.writeCppScriptBin {
name = "deploy-rs-online"; name = "deploy-rs-online";
code = '' code = ''
#include <string> #include <string>