Merge pull request #289580 from D3vil0p3r/patch-27
pasco: init at 20040505_1
This commit is contained in:
commit
142d2bff8c
10
pkgs/by-name/pa/pasco/include-string.h.patch
Normal file
10
pkgs/by-name/pa/pasco/include-string.h.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/src/pasco.c 2024-02-18 12:43:27.385857649 +0100
|
||||
+++ b/src/pasco.c 2024-02-18 12:44:00.286087384 +0100
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
+#include <string.h>
|
||||
|
||||
//
|
||||
/* This is the default block size for an activity record */
|
43
pkgs/by-name/pa/pasco/package.nix
Normal file
43
pkgs/by-name/pa/pasco/package.nix
Normal file
@ -0,0 +1,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 ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user