nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 attr,
6 gettext,
7 autoconf,
8 automake,
9 ncurses,
10 libtool,
11 libuuid,
12 libxfs,
13}:
14
15stdenv.mkDerivation rec {
16 pname = "xfsdump";
17 version = "3.2.0";
18
19 src = fetchurl {
20 url = "mirror://kernel/linux/utils/fs/xfs/${pname}/${pname}-${version}.tar.xz";
21 sha256 = "sha256-KRTbvh68iMfZOtiOIgqlfavEPSFuEfBiIcAe3zzBBzI=";
22 };
23
24 nativeBuildInputs = [
25 autoconf
26 automake
27 gettext
28 libtool
29 ];
30 buildInputs = [
31 attr
32 libuuid
33 libxfs
34 ncurses
35 ];
36
37 postPatch = ''
38 substituteInPlace Makefile \
39 --replace "cp include/install-sh ." "cp -f include/install-sh ."
40 '';
41
42 # Conifigure scripts don't check PATH, see xfstests derviation
43 preConfigure = ''
44 export MAKE=$(type -P make)
45 export MSGFMT=$(type -P msgfmt)
46 export MSGMERGE=$(type -P msgmerge)
47 export XGETTEXT=$(type -P xgettext)
48
49 make configure
50 patchShebangs ./install-sh
51 '';
52
53 meta = {
54 description = "XFS filesystem incremental dump utility";
55 homepage = "https://git.kernel.org/pub/scm/fs/xfs/xfsdump-dev.git/tree/doc/CHANGES";
56 license = lib.licenses.gpl2Only;
57 maintainers = [ lib.maintainers.lunik1 ];
58 platforms = lib.platforms.linux;
59 };
60}