nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 e2fsprogs,
6}:
7
8stdenv.mkDerivation {
9 version = "0.2.4";
10 pname = "extundelete";
11
12 src = fetchurl {
13 url = "mirror://sourceforge/extundelete/extundelete-0.2.4.tar.bz2";
14 sha256 = "1x0r7ylxlp9lbj3d7sqf6j2a222dwy2nfpff05jd6mkh4ihxvyd1";
15 };
16
17 buildInputs = [ e2fsprogs ];
18
19 # inode field i_dir_acl was repurposed as i_size_high in e2fsprogs 1.44,
20 # breaking the build
21 patchPhase = ''
22 substituteInPlace src/insertionops.cc \
23 --replace "Directory ACL:" "High 32 bits of size:" \
24 --replace "inode.i_dir_acl" "inode.i_size_high"
25 '';
26
27 meta = {
28 description = "Utility that can recover deleted files from an ext3 or ext4 partition";
29 homepage = "https://extundelete.sourceforge.net/";
30 license = lib.licenses.gpl2Only;
31 platforms = lib.platforms.linux;
32 maintainers = [ ];
33 mainProgram = "extundelete";
34 };
35}