3
0
Fork 0
forked from mirrors/nixpkgs

extundelete: fix build with e2fsprogs 1.44

This commit is contained in:
xeji 2018-04-15 01:23:07 +02:00
parent 2c95644e69
commit 0a74fca535

View file

@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
buildInputs = [ e2fsprogs ];
# inode field i_dir_acl was repurposed as i_size_high in e2fsprogs 1.44,
# breaking the build
patchPhase = ''
substituteInPlace src/insertionops.cc \
--replace "Directory ACL:" "High 32 bits of size:" \
--replace "inode.i_dir_acl" "inode.i_size_high"
'';
meta = with stdenv.lib; {
description = "Utility that can recover deleted files from an ext3 or ext4 partition";
homepage = http://extundelete.sourceforge.net/;