2025-05-04 07:17:39 +00:00

53 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
boost,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "skypeexport";
version = "1.4.0";
src = fetchFromGitHub {
owner = "Temptin";
repo = "SkypeExport";
tag = "v${finalAttrs.version}";
hash = "sha256-Uy3bmylDm/3T7T48zBkuk3lbnWW6Ps4Huqz8NjSAk8Y=";
};
patches = [
(fetchpatch {
name = "boost167.patch";
url = "https://github.com/Temptin/SkypeExport/commit/ef60f2e4fc9e4a5764c8d083a73b585457bc10b1.patch";
hash = "sha256-t+/v7c66OULmQCD/sNt+iDJeQ/6UG0CJ8uQY2PVSFQo=";
})
];
# fix build against Boost >= 1.85
# https://github.com/Temptin/SkypeExport/pull/24
postPatch = ''
substituteInPlace src/SkypeExport/main.cpp \
--replace-fail \
'.leaf()' \
'.filename()'
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ boost ];
preConfigure = "cd src/SkypeExport/_gccbuild/linux";
installPhase = "install -Dt $out/bin SkypeExport";
meta = {
description = "Export Skype history to HTML";
mainProgram = "SkypeExport";
homepage = "https://github.com/Temptin/SkypeExport";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.unix;
maintainers = [ ];
};
})