Unverified Commit 1217d584 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

rsnapshot: 1.4.5 -> 1.5.1 (#377329)

parents 80e2bf73 54575280
Loading
Loading
Loading
Loading
+21 −7
Original line number Diff line number Diff line
@@ -6,15 +6,17 @@
  openssh,
  rsync,
  logger,
  versionCheckHook,
  nix-update-script,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "rsnapshot";
  version = "1.4.5";
  version = "1.5.1";

  src = fetchurl {
    url = "https://rsnapshot.org/downloads/rsnapshot-${version}.tar.gz";
    sha256 = "sha256-ELdeAcolUR6CZqrNSVUxl1rRqK1VYha2pXx20CizgkI=";
    url = "https://github.com/rsnapshot/rsnapshot/releases/download/${finalAttrs.version}/rsnapshot-${finalAttrs.version}.tar.gz";
    hash = "sha256-j2r4BG7msCk7JjidCMtpUMf33f/8H3Tu/LCHvUnUT2I=";
  };

  propagatedBuildInputs = [
@@ -32,10 +34,22 @@ stdenv.mkDerivation rec {
      "/usr/bin/pod2man" "${perl}/bin/pod2man"
  '';

  meta = with lib; {
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = [ "--version" ];
  doInstallCheck = true;

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Filesystem snapshot utility for making backups of local and remote systems";
    homepage = "https://rsnapshot.org/";
    license = lib.licenses.gpl2Plus;
    platforms = platforms.linux;
    maintainers = with lib.maintainers; [ liberodark ];
    platforms = lib.platforms.linux;
    mainProgram = "rsnapshot";
  };
}
})