diff options
author | D3vil0p3r <crazysnob@live.it> | 2023-12-31 21:42:43 +0100 |
---|---|---|
committer | D3vil0p3r <vozaanthony@gmail.com> | 2024-01-27 23:23:09 +0100 |
commit | 98b95224c810c05a379f060a0b05d0322df325fd (patch) | |
tree | 44a4318a42fafca26bbd9556b734f033f3388ea1 /pkgs/by-name/dc | |
parent | b41904b92367780fb16813696a6459fad58aa342 (diff) |
dc3dd: init at 7.3.1
To be checked in https://github.com/NixOS/nixpkgs/issues/81418
Diffstat (limited to 'pkgs/by-name/dc')
-rw-r--r-- | pkgs/by-name/dc/dc3dd/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/dc/dc3dd/package.nix b/pkgs/by-name/dc/dc3dd/package.nix new file mode 100644 index 0000000000000..2744168adfc7d --- /dev/null +++ b/pkgs/by-name/dc/dc3dd/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchzip +, perlPackages +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "dc3dd"; + version = "7.3.1"; + + src = fetchzip { + url = "mirror://sourceforge/dc3dd/dc3dd-${finalAttrs.version}.zip"; + hash = "sha256-SYDoqGlsROHX1a0jJX11F+yp6CeFK+tZbYOOnScC6Ig="; + }; + + outputs = [ "out" "man" ]; + + preConfigure = '' + chmod +x configure + ''; + + buildInputs = [ perlPackages.LocaleGettext ]; + + makeFlags = [ + "PREFIX=$out" + ]; + + configureFlags = lib.optionals (stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64) [ "--build=arm" ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "A patched version of dd that includes a number of features useful for computer forensics"; + mainProgram = "dc3dd"; + homepage = "https://sourceforge.net/projects/dc3dd/"; + maintainers = with maintainers; [ d3vil0p3r ]; + platforms = platforms.unix; + license = licenses.gpl3Plus; # Refer to https://sourceforge.net/p/dc3dd/code/HEAD/tree/COPYING + broken = stdenv.isDarwin; + }; +}) |