Unverified Commit 8cd99e09 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

skypeexport: fix build against Boost >= 1.85 (#403990)

parents e446e0c6 2545e768
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {
  src = fetchFromGitHub {
    owner = "Temptin";
    repo = "SkypeExport";
    rev = "v${finalAttrs.version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Uy3bmylDm/3T7T48zBkuk3lbnWW6Ps4Huqz8NjSAk8Y=";
  };

@@ -26,18 +26,27 @@ stdenv.mkDerivation (finalAttrs: {
    })
  ];

  # 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 = with lib; {
  meta = {
    description = "Export Skype history to HTML";
    mainProgram = "SkypeExport";
    homepage = "https://github.com/Temptin/SkypeExport";
    license = licenses.gpl2;
    platforms = platforms.unix;
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.unix;
    maintainers = [ ];
  };
})