diff options
Diffstat (limited to 'nixos/tests/guix/scripts/create-file-to-store.scm')
-rw-r--r-- | nixos/tests/guix/scripts/create-file-to-store.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/tests/guix/scripts/create-file-to-store.scm b/nixos/tests/guix/scripts/create-file-to-store.scm new file mode 100644 index 000000000000..467e4c4fd53f --- /dev/null +++ b/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)))))) |