···11-{ fetchFromGitHub, stdenv, writeText, perl, openssh, rsync, logger,
22- configFile ? "/etc/rsnapshot.conf" }:
33-44-let patch = writeText "rsnapshot-config.patch" ''
55---- rsnapshot-program.pl 2013-10-05 20:31:08.715991442 +0200
66-+++ rsnapshot-program.pl 2013-10-05 20:31:42.496193633 +0200
77-@@ -383,7 +383,7 @@
88- }
99-1010- # set global variable
1111-- $config_file = $default_config_file;
1212-+ $config_file = '${configFile}';
1313- }
1414-1515- # accepts no args
1616-'';
1717-in
1818-stdenv.mkDerivation rec {
1919- name = "rsnapshot-1.4git";
2020- src = fetchFromGitHub {
2121- owner = "DrHyde";
2222- repo = "rsnapshot";
2323- rev = "1047cbb57937c29233388e2fcd847fecd3babe74";
2424- sha256 = "173y9q89dp4zf7nysqhjp3i2m086n7qdpawb9vx0ml5zha6mxf2p";
2525- };
2626-2727- propagatedBuildInputs = [perl openssh rsync logger];
2828-2929- patchPhase = ''
3030- substituteInPlace "Makefile.in" --replace \
3131- "/usr/bin/pod2man" "${perl}/bin/pod2man"
3232- patch -p0 <${patch}
3333- '';
3434-3535- # I still think this is a good idea, but it currently fails in the chroot because it checks
3636- # that things are writable and so on.
3737- #checkPhase = ''
3838- # if [ -f "${configFile}" ]
3939- # then
4040- # ${perl}/bin/perl -w ./rsnapshot configtest
4141- # else
4242- # echo File "${configFile}" does not exist, not checking
4343- # fi
4444- #'';
4545-4646- meta = with stdenv.lib; {
4747- description = "A filesystem snapshot utility for making backups of local and remote systems";
4848- homepage = http://rsnapshot.org/;
4949- license = stdenv.lib.licenses.gpl2Plus;
5050- platforms = platforms.linux;
5151- };
5252-}
+1-7
pkgs/top-level/all-packages.nix
···29022902 rng_tools = callPackage ../tools/security/rng-tools { };
2903290329042904 rsnapshot = callPackage ../tools/backup/rsnapshot {
29052905- perl = perl516; # fails to create docs: POD document had syntax errors
29062905 # For the `logger' command, we can use either `utillinux' or
29072906 # GNU Inetutils. The latter is more portable.
29082908- logger = inetutils;
29072907+ logger = if stdenv.isLinux then utillinux else inetutils;
29092908 };
29102910- rsnapshotGit = lowPrio (callPackage ../tools/backup/rsnapshot/git.nix {
29112911- # For the `logger' command, we can use either `utillinux' or
29122912- # GNU Inetutils. The latter is more portable.
29132913- logger = inetutils;
29142914- });
2915290929162910 rlwrap = callPackage ../tools/misc/rlwrap { };
29172911