summary refs log tree commit diff stats
path: root/tests/shards_finalize/test.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-01-29 14:38:41 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-01-29 14:38:41 +0100
commitb56048715f15bfa34058fc022efea29a2e18e112 (patch)
treeed5ee6491ade2df4068309d1a818299e1198e553 /tests/shards_finalize/test.nix
parentfix(by-name-overlay): Apply the `finalizeFunction` to the correct attr set (diff)
downloadnix-library-b56048715f15bfa34058fc022efea29a2e18e112.zip
test(shards_finalize): Init
Diffstat (limited to '')
-rw-r--r--tests/shards_finalize/test.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/shards_finalize/test.nix b/tests/shards_finalize/test.nix
new file mode 100644
index 0000000..0e6d5e0
--- /dev/null
+++ b/tests/shards_finalize/test.nix
@@ -0,0 +1,9 @@
+let
+  nixLib = import ../../default.nix {};
+in
+  nixLib.mkByName {
+    useShards = true;
+    baseDirectory = ./by-name;
+    fileName = "file.nix";
+    finalizeFunction = name: value: "${name}-${value}";
+  }