summary refs log tree commit diff stats
path: root/pkgs/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-23 18:38:26 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-23 18:38:26 +0100
commitf92b8b3c229582f3f7095a68df554f9a535ca702 (patch)
tree1cf5519f73abae8ad627b49856ca010c82d3068c /pkgs/default.nix
parentfeat(pkgs/back): Init (diff)
downloadnixos-server-f92b8b3c229582f3f7095a68df554f9a535ca702.tar.gz
nixos-server-f92b8b3c229582f3f7095a68df554f9a535ca702.zip
feat(pkgs): Hook up to the flake and add needed infrastructure
Diffstat (limited to '')
-rw-r--r--pkgs/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
new file mode 100644
index 0000000..e665eb2
--- /dev/null
+++ b/pkgs/default.nix
@@ -0,0 +1,22 @@
+{
+  pkgs,
+  nixLib,
+}: let
+  inherit (pkgs) lib;
+
+  warnMergeMessage = "the ./pkgs/by-name set";
+  wMM = warnMergeMessage;
+  callPackage =
+    lib.callPackageWith
+    (nixLib.warnMerge
+      pkgs
+      vhackPkgs
+      wMM);
+
+  vhackPkgs = nixLib.mkByName {
+    baseDirectory = ./by-name;
+    fileName = "package.nix";
+    finalizeFunction = name: value: callPackage value {};
+  };
+in
+  vhackPkgs