xfsprogs: fix build

This commit is contained in:
Alyssa Ross
2025-02-12 09:56:32 +01:00
parent a8ea01bdd0
commit 4865ae3eef
+16
View File
@@ -3,6 +3,7 @@
stdenv,
buildPackages,
fetchurl,
autoreconfHook,
gettext,
pkg-config,
icu,
@@ -22,6 +23,14 @@ stdenv.mkDerivation rec {
hash = "sha256-CDJAckfbeRzHDe+W5+JUvW7fBD3ISoCmLzzNbj3/0yk=";
};
patches = [
(fetchurl {
name = "icu76.patch";
url = "https://lore.kernel.org/linux-xfs/20250212081649.3502717-1-hi@alyssa.is/raw";
hash = "sha256-Z7BW0B+/5eHWXdHre++wRtdbU/P6XZqudYx6EK5msIU=";
})
];
outputs = [
"bin"
"dev"
@@ -31,6 +40,7 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [
autoreconfHook
gettext
pkg-config
libuuid # codegen tool uses libuuid
@@ -61,6 +71,12 @@ stdenv.mkDerivation rec {
patchShebangs ./install-sh
'';
# The default --force would replace xfsprogs' custom install-sh.
autoreconfFlags = [
"--install"
"--verbose"
];
configureFlags = [
"--disable-lib64"
"--with-systemd-unit-dir=${placeholder "out"}/lib/systemd/system"