steghide: Fix build on clang 16 (#353566)

This commit is contained in:
Peder Bergebakken Sundt
2024-11-05 20:32:27 +01:00
committed by GitHub
+18 -12
View File
@@ -1,11 +1,12 @@
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, libjpeg
, libmcrypt
, libmhash
, zlib
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
libjpeg,
libmcrypt,
libmhash,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -24,16 +25,21 @@ stdenv.mkDerivation (finalAttrs: {
];
buildInputs = [
libjpeg
libmcrypt
libmhash
zlib
libjpeg
libmcrypt
libmhash
zlib
];
postPatch = ''
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";