aboutsummaryrefslogtreecommitdiff
path: root/pkgs/misc/create-koboroot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/misc/create-koboroot.nix')
-rw-r--r--pkgs/misc/create-koboroot.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/misc/create-koboroot.nix b/pkgs/misc/create-koboroot.nix
new file mode 100644
index 0000000..7cf1bff
--- /dev/null
+++ b/pkgs/misc/create-koboroot.nix
@@ -0,0 +1,5 @@
+{ runCommandLocal, ... }: p:
+runCommand "mk-koboroot" {} ''
+ mkdir -p $out
+ tar czvf --mode=u+w $out/KoboRoot.tgz "${p}"
+''