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