Removed pkgs functions
This commit is contained in:
parent
ed48a77b93
commit
3ea3d96020
3 changed files with 2 additions and 31 deletions
|
|
@ -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;}
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
writeCppScriptBin,
|
||||
custom,
|
||||
lib,
|
||||
jq,
|
||||
deploy-rs,
|
||||
...
|
||||
}:
|
||||
writeCppScriptBin {
|
||||
custom.writeCppScriptBin {
|
||||
name = "deploy-rs-online";
|
||||
code = ''
|
||||
#include <string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue