blob: 5f74a1eaf0a408c73865e0a1d6a9293d1075536d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{ pkgs, lib, ... }:
with builtins // lib;
{
copyFile = { source, directory, executable, target, ... }: ''
cp -${if directory then "r" else ""}v "${source}" "${target}"
${optionalString (isBool executable) ''
chmod ${if executable then "+" else "-"}x "${target}"
''}
'';
}
|