mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
29 lines
798 B
Nix
29 lines
798 B
Nix
{ fetchurl, lib, stdenv, perl, openssh, rsync, logger }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rsnapshot";
|
|
version = "1.4.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz";
|
|
sha256 = "sha256-ELdeAcolUR6CZqrNSVUxl1rRqK1VYha2pXx20CizgkI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [perl openssh rsync logger];
|
|
|
|
configureFlags = [ "--sysconfdir=/etc --prefix=/" ];
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace "Makefile.in" --replace \
|
|
"/usr/bin/pod2man" "${perl}/bin/pod2man"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Filesystem snapshot utility for making backups of local and remote systems";
|
|
homepage = "https://rsnapshot.org/";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|