mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
|
{ lib
|
||
|
, stdenv
|
||
|
, fetchurl
|
||
|
}:
|
||
|
|
||
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
pname = "mac-robber";
|
||
|
version = "1.02";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "mirror://sourceforge/project/mac-robber/mac-robber/${finalAttrs.version}/mac-robber-${finalAttrs.version}.tar.gz";
|
||
|
hash = "sha256-WJXTMuyNh+FfIUQcYVRbf2iDCi7iyWfTgXc70IUEgG0=";
|
||
|
};
|
||
|
|
||
|
patches = [
|
||
|
# add GCC hardening.
|
||
|
(fetchurl {
|
||
|
name = "10_add-GCC-hardening.patch";
|
||
|
url = "https://salsa.debian.org/pkg-security-team/mac-robber/-/raw/b6a59d78e2f58fbfab7f1b3ed9b72531d28693ca/debian/patches/10_add-GCC-hardening.patch";
|
||
|
hash = "sha256-1ma6Vh1MTE6WlCcm2KzRLK/ZV3hAw7xP25yi7TrIqLI=";
|
||
|
})
|
||
|
];
|
||
|
|
||
|
makeFlags = [
|
||
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||
|
"GCC_OPT="
|
||
|
];
|
||
|
|
||
|
installPhase = ''
|
||
|
runHook preInstall
|
||
|
install -D mac-robber $out/bin/mac-robber
|
||
|
runHook postInstall
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Digital investigation tool that collects data from allocated files in a mounted file system";
|
||
|
mainProgram = "mac-robber";
|
||
|
homepage = "https://www.sleuthkit.org/mac-robber/";
|
||
|
maintainers = with maintainers; [ d3vil0p3r ];
|
||
|
platforms = platforms.unix;
|
||
|
license = licenses.gpl2Only;
|
||
|
};
|
||
|
})
|