about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/guix/scripts/create-file-to-store.scm
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/guix/scripts/create-file-to-store.scm')
-rw-r--r--nixpkgs/nixos/tests/guix/scripts/create-file-to-store.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/guix/scripts/create-file-to-store.scm b/nixpkgs/nixos/tests/guix/scripts/create-file-to-store.scm
new file mode 100644
index 000000000000..467e4c4fd53f
--- /dev/null
+++ b/nixpkgs/nixos/tests/guix/scripts/create-file-to-store.scm
@@ -0,0 +1,8 @@
+;; A script that creates a store item with the given text and prints the
+;; resulting store item path.
+(use-modules (guix))
+
+(with-store store
+            (display (add-text-to-store store "guix-basic-test-text"
+                                        (string-join
+                                          (cdr (command-line))))))