Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
attr,
|
|
gettext,
|
|
autoconf,
|
|
automake,
|
|
ncurses,
|
|
libtool,
|
|
libuuid,
|
|
libxfs,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xfsdump";
|
|
version = "3.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/utils/fs/xfs/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-KRTbvh68iMfZOtiOIgqlfavEPSFuEfBiIcAe3zzBBzI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
gettext
|
|
libtool
|
|
];
|
|
buildInputs = [
|
|
attr
|
|
libuuid
|
|
libxfs
|
|
ncurses
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace "cp include/install-sh ." "cp -f include/install-sh ."
|
|
'';
|
|
|
|
# Conifigure scripts don't check PATH, see xfstests derviation
|
|
preConfigure = ''
|
|
export MAKE=$(type -P make)
|
|
export MSGFMT=$(type -P msgfmt)
|
|
export MSGMERGE=$(type -P msgmerge)
|
|
export XGETTEXT=$(type -P xgettext)
|
|
|
|
make configure
|
|
patchShebangs ./install-sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "XFS filesystem incremental dump utility";
|
|
homepage = "https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/tree/doc/CHANGES";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.lunik1 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|