Commit c3837ef0 authored by Paul Meyer's avatar Paul Meyer
Browse files

dnf5: 5.1.15 -> 5.2.5.0

parent 0358591a
Loading
Loading
Loading
Loading
+59 −47
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, cmake
, createrepo_c
, doxygen
, gettext
, help2man
, pkg-config
, python3Packages
, cppunit
, fmt
, json_c
, libmodulemd
, librepo
, libsmartcols
, libsolv
, libxml2
, libyaml
, pcre2
, rpm
, sdbus-cpp
, sphinx
, sqlite
, systemd
, testers
, toml11
, zchunk
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  createrepo_c,
  doxygen,
  gettext,
  help2man,
  pkg-config,
  python3Packages,
  cppunit,
  fmt,
  json_c,
  libmodulemd,
  librepo,
  libsmartcols,
  libsolv,
  libxml2,
  libyaml,
  pcre2,
  rpm,
  sdbus-cpp,
  sphinx,
  sqlite,
  systemd,
  testers,
  toml11,
  zchunk,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "dnf5";
  version = "5.1.15";
  version = "5.2.5.0";

  outputs = [ "out" "man" ];
  outputs = [
    "out"
    "man"
  ];

  src = fetchFromGitHub {
    owner = "rpm-software-management";
    repo = "dnf5";
    rev = finalAttrs.version;
    hash = "sha256-IDF/jRnPpGbHk5bY7plkCO1x/i10H+HCcU88JI4EHvs=";
    hash = "sha256-zH+TDtVMEsgKZR0EA+G8SB1PZyiTfhnG7n6lupeoWyI=";
  };

  nativeBuildInputs = [
  nativeBuildInputs =
    [
      cmake
      createrepo_c
      doxygen
@@ -49,7 +55,8 @@ stdenv.mkDerivation (finalAttrs: {
      help2man
      pkg-config
      sphinx
  ] ++ (with python3Packages; [
    ]
    ++ (with python3Packages; [
      breathe
      sphinx-autoapi
      sphinx-rtd-theme
@@ -81,6 +88,7 @@ stdenv.mkDerivation (finalAttrs: {
    "-DWITH_PERL5=OFF"
    "-DWITH_PYTHON3=OFF"
    "-DWITH_RUBY=OFF"
    "-DWITH_SYSTEMD=OFF"
    "-DWITH_PLUGIN_RHSM=OFF" # Red Hat Subscription Manager plugin
    # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
    # (setting it to an absolute path causes include files to go to $out/$out/include,
@@ -105,8 +113,9 @@ stdenv.mkDerivation (finalAttrs: {

  dontFixCmake = true;

  passthru.tests = {
    version = testers.testVersion { package = finalAttrs.finalPackage; };
  passthru = {
    tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
    updateScript = nix-update-script { };
  };

  meta = with lib; {
@@ -114,7 +123,10 @@ stdenv.mkDerivation (finalAttrs: {
    homepage = "https://github.com/rpm-software-management/dnf5";
    changelog = "https://github.com/rpm-software-management/dnf5/releases/tag/${finalAttrs.version}";
    license = licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ malt3 katexochen ];
    maintainers = with lib.maintainers; [
      malt3
      katexochen
    ];
    mainProgram = "dnf5";
    platforms = platforms.linux ++ platforms.darwin;
  };