Merge pull request #167103 from lunik1/xfsdump

xfsdump: init at 3.1.10
This commit is contained in:
ajs124 2022-04-04 17:20:19 +02:00 committed by GitHub
commit b1254218f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ lib
, stdenv
, fetchurl
, attr
, gettext
, autoconf
, automake
, ncurses
, libtool
, libuuid
, libxfs
}:
stdenv.mkDerivation rec {
pname = "xfsdump";
version = "3.1.10";
src = fetchurl {
url = "mirror://kernel/linux/utils/fs/xfs/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-mqt6U6oFzUbtyXJp6/FFaqsrYKuMH/+q+KpJLwtfZRc=";
};
nativeBuildInputs = [
autoconf
automake
gettext
libtool
];
buildInputs = [
attr
libuuid
libxfs
ncurses
];
patchPhase = ''
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;
};
}

View file

@ -11465,6 +11465,8 @@ with pkgs;
xflux = callPackage ../tools/misc/xflux { }; xflux = callPackage ../tools/misc/xflux { };
xflux-gui = python3Packages.callPackage ../tools/misc/xflux/gui.nix { }; xflux-gui = python3Packages.callPackage ../tools/misc/xflux/gui.nix { };
xfsdump = callPackage ../tools/filesystems/xfsdump { };
xfsprogs = callPackage ../tools/filesystems/xfsprogs { }; xfsprogs = callPackage ../tools/filesystems/xfsprogs { };
libxfs = xfsprogs.dev; libxfs = xfsprogs.dev;