summaryrefslogtreecommitdiff
path: root/hel
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-17 01:07:14 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-17 01:07:14 +0200
commit743af014a307153c017077d255c7b3a181237e35 (patch)
treec26c38c19122fb2cfb42064069e05888f2d2c215 /hel
parentfdf028a3703e66770be71c777d7609c58611f859 (diff)
parent29f16288001cd0d64e7c158bb1e327483a9e2d9a (diff)
downloadnixos-743af014a307153c017077d255c7b3a181237e35.tar
nixos-743af014a307153c017077d255c7b3a181237e35.tar.gz
nixos-743af014a307153c017077d255c7b3a181237e35.tar.bz2
nixos-743af014a307153c017077d255c7b3a181237e35.tar.xz
nixos-743af014a307153c017077d255c7b3a181237e35.zip
Merge branch 'master' of git://git.yggdrasil.li/nixos
Diffstat (limited to 'hel')
-rw-r--r--hel/recv-media.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
new file mode 100644
index 00000000..b61840ec
--- /dev/null
+++ b/hel/recv-media.nix
@@ -0,0 +1,13 @@
1{ stdenv, coreutils, writeScriptBin }:
2
3writeScriptBin "recv-media" ''
4 #!${stdenv.shell}
5
6 [[ -z "$1" ]] && exit 2
7
8 PATH=${coreutils}/bin
9
10 dir=/var/media
11
12 cp -l "$1" "''${dir}/$(basename "$1")"
13''