mdadm: 4.3 -> 4.4

While at it added trivial updater and `nixosTests`
broken by this `mdadm` update.

Changes: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/tree/CHANGELOG.md?h=mdadm-4.4
This commit is contained in:
Sergei Trofimovich
2025-10-01 21:18:45 +01:00
parent 693d4474a3
commit 80ef20e210
+15 -6
View File
@@ -8,15 +8,17 @@
system-sendmail,
udev,
udevCheckHook,
gitUpdater,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "mdadm";
version = "4.3";
version = "4.4";
src = fetchurl {
url = "mirror://kernel/linux/utils/raid/mdadm/mdadm-${version}.tar.xz";
sha256 = "sha256-QWcnrh8QgOpuMJDOo23QdoJvw2kVHjarc2VXupIZb58=";
sha256 = "sha256-m0iPNe0VPfmZJLX+Qe7TgOhRLejxihGGKMrN1oGx1XM=";
};
patches = [
@@ -32,10 +34,6 @@ stdenv.mkDerivation rec {
url = "https://lore.kernel.org/linux-raid/20240220165158.3521874-1-raj.khem@gmail.com/raw";
hash = "sha256-JOZ8n7zi+nq236NPpB4e2gUy8I3l3DbcoLhpeL73f98=";
})
(fetchurl {
url = "https://github.com/md-raid-utilities/mdadm/commit/9dbd11e091f84eb0bf9d717283774816c4c4453d.patch";
hash = "sha256-8GdjP1ceVwejTOFXcHXG8wkIF9/D6hOUGD6btvuqs24=";
})
];
makeFlags = [
@@ -80,6 +78,17 @@ stdenv.mkDerivation rec {
grep -r $out $out/bin && false || true
'';
passthru = {
tests = {
inherit (nixosTests) systemd-initrd-swraid;
installer-swraid = nixosTests.installer.swraid;
};
updateScript = gitUpdater {
url = "https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git";
rev-prefix = "mdadm-";
};
};
meta = with lib; {
description = "Programs for managing RAID arrays under Linux";
homepage = "https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git";