1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-08 19:45:42 +03:00

[staging-next] xfsprogs: fix build (#381400)

This commit is contained in:
K900 2025-02-12 11:58:27 +03:00 committed by GitHub
commit 03c4436691
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"