Unverified Commit df8580dc authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

pgbackrest: modernize

parent d05de638
Loading
Loading
Loading
Loading
+22 −22
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  bzip2,
  fetchFromGitHub,
  meson,
  ninja,
  python3,
  pkg-config,
  lib,
  libbacktrace,
  bzip2,
  lz4,
  libpq,
  libssh2,
  libxml2,
  libyaml,
  lz4,
  meson,
  ninja,
  pkg-config,
  python3,
  stdenv,
  zlib,
  libssh2,
  zstd,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "pgbackrest";
  version = "2.55.1";

  src = fetchFromGitHub {
    owner = "pgbackrest";
    repo = "pgbackrest";
    rev = "release/${version}";
    sha256 = "sha256-A1dTywcCHBu7Ml0Q9k//VVPFN1C3kmmMkq4ok9T4g94=";
    tag = "release/${finalAttrs.version}";
    hash = "sha256-A1dTywcCHBu7Ml0Q9k//VVPFN1C3kmmMkq4ok9T4g94=";
  };

  strictDeps = true;
@@ -33,28 +33,28 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = [
    meson
    ninja
    python3
    pkg-config
    python3
  ];

  buildInputs = [
    libbacktrace
    bzip2
    lz4
    libbacktrace
    libpq
    libssh2
    libxml2
    libyaml
    lz4
    zlib
    libssh2
    zstd
  ];

  meta = with lib; {
  meta = {
    description = "Reliable PostgreSQL backup & restore";
    homepage = "https://pgbackrest.org/";
    changelog = "https://github.com/pgbackrest/pgbackrest/releases";
    license = licenses.mit;
    homepage = "https://pgbackrest.org";
    changelog = "https://github.com/pgbackrest/pgbackrest/releases/tag/release%2F${finalAttrs.version}";
    license = lib.licenses.mit;
    mainProgram = "pgbackrest";
    maintainers = with maintainers; [ zaninime ];
    maintainers = with lib.maintainers; [ zaninime ];
  };
}
})