From 3ea3d96020aa40cf2c72b764bdfc4cc7a0f04166 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Tue, 12 Aug 2025 00:10:29 +0200 Subject: [PATCH] Removed pkgs functions --- overlays/functions/default.nix | 29 ------------------- packages/deploy-rs-online/default.nix | 4 +-- .../writeCppScriptBin/default.nix | 0 3 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 overlays/functions/default.nix rename {functions => packages}/writeCppScriptBin/default.nix (100%) diff --git a/overlays/functions/default.nix b/overlays/functions/default.nix deleted file mode 100644 index fa696c5..0000000 --- a/overlays/functions/default.nix +++ /dev/null @@ -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;} diff --git a/packages/deploy-rs-online/default.nix b/packages/deploy-rs-online/default.nix index 608b4b5..703d36b 100644 --- a/packages/deploy-rs-online/default.nix +++ b/packages/deploy-rs-online/default.nix @@ -1,11 +1,11 @@ { - writeCppScriptBin, + custom, lib, jq, deploy-rs, ... }: -writeCppScriptBin { +custom.writeCppScriptBin { name = "deploy-rs-online"; code = '' #include diff --git a/functions/writeCppScriptBin/default.nix b/packages/writeCppScriptBin/default.nix similarity index 100% rename from functions/writeCppScriptBin/default.nix rename to packages/writeCppScriptBin/default.nix