14 stdenv.mkDerivation (finalAttrs: {
19 url = "mirror://sourceforge/project/guymager/guymager/LatestSource/guymager-${finalAttrs.version}.tar.gz";
20 hash = "sha256-xDsQ/d6fyfLOr4uXpdoqMljfFrVgQTUu0t2e5opcaRg=";
23 enableParallelBuilding = true;
29 libsForQt5.wrapQtAppsHook
41 patchShebangs compileinfo.sh
42 substituteInPlace manuals/guymager_body.1 config.cpp \
43 --replace-fail "/etc/guymager/guymager.cfg" "$out/share/guymager/guymager.cfg"
44 substituteInPlace compileinfo.sh \
45 --replace-fail " debian/changelog" "" \
46 --replace-fail "dpkg-parsechangelog" "dpkg-parsechangelog -l changelog"
47 substituteInPlace threadscan.cpp \
48 --replace-fail '/lib,/usr/lib,/usr/lib64,/usr/local/lib' '${
49 builtins.replaceStrings [ ":" ] [ "," ] (
56 substituteInPlace org.freedesktop.guymager.policy guymager.pro main.cpp guymager.cfg \
57 --replace-fail /usr $out
62 mkdir -p $out/{bin,share}
64 rm -rf *.cpp *.h *.pro
65 cp -aR . "$out/share/guymager/"
66 makeWrapper $out/share/guymager/guymager $out/bin/guymager
71 description = "Forensic imager for media acquisition";
72 mainProgram = "guymager";
73 homepage = "https://guymager.sourceforge.io";
74 maintainers = with lib.maintainers; [ d3vil0p3r ];
75 platforms = lib.platforms.linux;
76 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
77 license = lib.licenses.gpl2Only;