1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 cmake,
7 boost,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "skypeexport";
12 version = "1.4.0";
13
14 src = fetchFromGitHub {
15 owner = "Temptin";
16 repo = "SkypeExport";
17 tag = "v${finalAttrs.version}";
18 hash = "sha256-Uy3bmylDm/3T7T48zBkuk3lbnWW6Ps4Huqz8NjSAk8Y=";
19 };
20
21 patches = [
22 (fetchpatch {
23 name = "boost167.patch";
24 url = "https://github.com/Temptin/SkypeExport/commit/ef60f2e4fc9e4a5764c8d083a73b585457bc10b1.patch";
25 hash = "sha256-t+/v7c66OULmQCD/sNt+iDJeQ/6UG0CJ8uQY2PVSFQo=";
26 })
27 ];
28
29 # fix build against Boost >= 1.85
30 # https://github.com/Temptin/SkypeExport/pull/24
31 postPatch = ''
32 substituteInPlace src/SkypeExport/main.cpp \
33 --replace-fail \
34 '.leaf()' \
35 '.filename()'
36 '';
37
38 nativeBuildInputs = [ cmake ];
39 buildInputs = [ boost ];
40
41 preConfigure = "cd src/SkypeExport/_gccbuild/linux";
42 installPhase = "install -Dt $out/bin SkypeExport";
43
44 meta = {
45 description = "Export Skype history to HTML";
46 mainProgram = "SkypeExport";
47 homepage = "https://github.com/Temptin/SkypeExport";
48 license = lib.licenses.gpl2Only;
49 platforms = lib.platforms.unix;
50 maintainers = [ ];
51 };
52})