1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 libjpeg,
7 libmcrypt,
8 libmhash,
9 zlib,
10}:
11
12stdenv.mkDerivation (finalAttrs: {
13 pname = "steghide";
14 version = "0.5.1.1";
15
16 src = fetchFromGitHub {
17 owner = "museoa";
18 repo = "steghide";
19 rev = finalAttrs.version;
20 hash = "sha256-uUXEipIUfu9AbG7Ekz+25JkWSEGzqA7sJHZqezLzUto=";
21 };
22
23 nativeBuildInputs = [
24 autoreconfHook
25 ];
26
27 buildInputs = [
28 libjpeg
29 libmcrypt
30 libmhash
31 zlib
32 ];
33
34 postPatch = ''
35 cd src
36 '';
37
38 # std::binary_function and std::unary_function has been removed in c++17
39 makeFlags = lib.optionals stdenv.cc.isClang [
40 "CXXFLAGS=-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION"
41 ];
42
43 meta = with lib; {
44 homepage = "https://github.com/museoa/steghide";
45 description = "Open source steganography program";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ ];
48 platforms = with platforms; unix;
49 mainProgram = "steghide";
50 };
51})