nixpkgs/pkgs/tools/filesystems/xfsdump/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.2 KiB
Nix
Raw Normal View History

2022-04-03 23:29:30 +00:00
{ lib
, stdenv
, fetchurl
, attr
, gettext
, autoconf
, automake
, ncurses
, libtool
, libuuid
, libxfs
}:
stdenv.mkDerivation rec {
pname = "xfsdump";
2022-12-25 18:02:46 +00:00
version = "3.1.12";
2022-04-03 23:29:30 +00:00
src = fetchurl {
url = "mirror://kernel/linux/utils/fs/xfs/${pname}/${pname}-${version}.tar.xz";
2022-12-25 18:02:46 +00:00
sha256 = "sha256-85xMGzBrLdfsl5wOlNYP5pCD0uz5rwUcrF7zvtdyx0o=";
2022-04-03 23:29:30 +00:00
};
nativeBuildInputs = [
autoconf
automake
gettext
libtool
];
buildInputs = [
attr
libuuid
libxfs
ncurses
];
postPatch = ''
2022-04-03 23:29:30 +00:00
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;
};
}