-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fscusat/mirror/archlinux: init #2
base: master
Are you sure you want to change the base?
Conversation
So what should be the path and what changes should I make? |
the arch mirror should be rsynced to /var/lib/arch...* |
I updated the paths as requested. If any changes are required, please feel free to ping me. |
cmd = pkgs.writeScript "rsync_cmd-${src}" '' | ||
rsync -rlptH --safe-links --delete-delay --delay-updates \ | ||
--timeout=600 --contimeout=60 --no-motd \ | ||
${if pkgs.stty then "-h -v --progress" else "--quiet"} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't make sense semantically, what are you trying to do here
${src} ${dest} ${lib.concatMapStrings (s: " '${s}'") extraArgs} | ||
''; | ||
in | ||
pkgs.stdenv.mkDerivation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a job for writeShellApplication
|
||
${rsync} | ||
''; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are too much semantic hallucination in this pr :P, i can't review it in this state.
if you're new to nixos please go through nixos and nixpkgs manual and then you can update this pr.
This is a new Pull Request as I have some doubts regarding the paths and this is a better version which uses the shell script provided by arch linux
A link to the script