Unverified Commit 7e6d2a5c authored by Ramses's avatar Ramses Committed by GitHub
Browse files

parted: 3.6 -> 3.7 (#509452)

parents 18531733 d0625f34
Loading
Loading
Loading
Loading
+8 −14
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchpatch,
  pkg-config,
  lvm2,
  libuuid,
  gettext,
@@ -18,22 +18,13 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "parted";
  version = "3.6";
  version = "3.7";

  src = fetchurl {
    url = "mirror://gnu/parted/parted-${finalAttrs.version}.tar.xz";
    sha256 = "sha256-O0Pb4zzKD5oYYB66tWt4UrEo7Bo986mzDM3l5zNZ5hI=";
    sha256 = "sha256-AI3ldWGk88JaBkjmbtEeezC+STiJtkM0ptcPLBlR73s=";
  };

  patches = [
    # Fix the build against C23 compilers (like gcc-15):
    (fetchpatch {
      name = "c23.patch";
      url = "https://git.savannah.gnu.org/gitweb/?p=parted.git;a=patch;h=16343bda6ce0d41edf43f8dac368db3bbb63d271";
      hash = "sha256-8FgnwMrzMHPZNU+b/mRHCSu8sn6H7GhVLIhMUel40Hk=";
    })
  ];

  outputs = [
    "out"
    "dev"
@@ -52,6 +43,9 @@ stdenv.mkDerivation (finalAttrs: {
  ++ lib.optional (gettext != null) gettext
  ++ lib.optional (lvm2 != null) lvm2;

  nativeBuildInputs = [
    pkg-config
  ];
  configureFlags =
    (if (readline != null) then [ "--with-readline" ] else [ "--without-readline" ])
    ++ lib.optional (lvm2 == null) "--disable-device-mapper"
@@ -87,8 +81,8 @@ stdenv.mkDerivation (finalAttrs: {
    homepage = "https://www.gnu.org/software/parted/";
    license = lib.licenses.gpl3Plus;

    maintainers = [
      # Add your name here!
    maintainers = with lib.maintainers; [
      kybe236
    ];

    # GNU Parted requires libuuid, which is part of util-linux-ng.