1{
2 lib,
3 stdenv,
4 fetchzip,
5 perlPackages,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "dc3dd";
10 version = "7.3.1";
11
12 src = fetchzip {
13 url = "mirror://sourceforge/dc3dd/dc3dd-${finalAttrs.version}.zip";
14 hash = "sha256-SYDoqGlsROHX1a0jJX11F+yp6CeFK+tZbYOOnScC6Ig=";
15 };
16
17 outputs = [
18 "out"
19 "man"
20 ];
21
22 preConfigure = ''
23 chmod +x configure
24 '';
25
26 buildInputs = [ perlPackages.LocaleGettext ];
27
28 makeFlags = [
29 "PREFIX=$out"
30 "CC=${stdenv.cc.targetPrefix}cc"
31 ];
32
33 enableParallelBuilding = true;
34
35 meta = with lib; {
36 description = "Patched version of dd that includes a number of features useful for computer forensics";
37 mainProgram = "dc3dd";
38 homepage = "https://sourceforge.net/projects/dc3dd/";
39 maintainers = with maintainers; [ d3vil0p3r ];
40 platforms = platforms.linux;
41 license = licenses.gpl3Plus; # Refer to https://sourceforge.net/p/dc3dd/code/HEAD/tree/COPYING
42 };
43})