Unverified Commit 53bbf1aa authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

steghide: Fix build on clang 16 (#353566)

parents 7e44cf12 38a1f61c
Loading
Loading
Loading
Loading
+18 −12
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, libjpeg
, libmcrypt
, libmhash
, zlib
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoreconfHook,
  libjpeg,
  libmcrypt,
  libmhash,
  zlib,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -34,6 +35,11 @@ stdenv.mkDerivation (finalAttrs: {
    cd src
  '';

  # std::binary_function and std::unary_function has been removed in c++17
  makeFlags = lib.optionals stdenv.cc.isClang [
    "CXXFLAGS=-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION"
  ];

  meta = with lib; {
    homepage = "https://github.com/museoa/steghide";
    description = "Open source steganography program";