about summary refs log tree commit diff
path: root/pkgs/by-name/pa/pasco/package.nix
blob: da9343db393049475a869ffea1a316c639ad7792 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "pasco";
  version = "20040505_1";

  src = fetchurl {
    url = "mirror://sourceforge/project/fast/Pasco/Pasco%20v${finalAttrs.version}/pasco_${finalAttrs.version}.tar.gz";
    hash = "sha256-o7jue+lgVxQQvFZOzJMGd1WihlD7Nb+1WaSutq9vaGg=";
  };

  patches = [
    ./include-string.h.patch
  ];

  makeFlags = [
    "-C src"
  ];

  postPatch = ''
    substituteInPlace src/Makefile \
      --replace gcc cc
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    cp bin/pasco $out/bin
    runHook postInstall
  '';

  meta = with lib; {
    description = "Examine the contents of Internet Explorer's cache files for forensic purposes";
    mainProgram = "pasco";
    homepage = "https://sourceforge.net/projects/fast/files/Pasco/";
    maintainers = with maintainers; [ d3vil0p3r ];
    platforms = platforms.unix;
    license = with licenses; [ bsd3 ];
  };
})