14 jdkWithJfx = jdk.override (
15 lib.optionalAttrs stdenv.hostPlatform.isLinux {
20 stdenv.mkDerivation rec {
25 url = "https://github.com/sleuthkit/autopsy/releases/download/autopsy-${version}/autopsy-${version}.zip";
26 hash = "sha256-32iOQA3+ykltCYW/MpqCVxyhh3mm6eYzY+t0smAsWRw=";
44 # Run the provided setup script to make files executable and copy sleuthkit
45 TSK_JAVA_LIB_PATH="${sleuthkit}/share/java" bash $out/unix_setup.sh -j '${jdkWithJfx}' -n autopsy
47 substituteInPlace $out/bin/autopsy \
48 --replace-warn 'APPNAME=`basename "$PRG"`' 'APPNAME=autopsy'
49 wrapProgram $out/bin/autopsy \
50 --run 'export SOLR_LOGS_DIR="$HOME/.autopsy/dev/var/log"' \
51 --run 'export SOLR_PID_DIR="$HOME/.autopsy/dev"' \
64 description = "Graphical interface to The Sleuth Kit and other open source digital forensics tools";
65 homepage = "https://www.sleuthkit.org/autopsy";
66 changelog = "https://github.com/sleuthkit/autopsy/releases/tag/autopsy-${version}";
67 # Autopsy brings a lot of vendored dependencies
68 license = with lib.licenses; [
80 maintainers = with lib.maintainers; [ zebreus ];
81 mainProgram = "autopsy";
82 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
83 # Autopsy theoretically also supports darwin
84 platforms = lib.platforms.x86_64;