blob: c2cfe781d84e7ca5dbd14bc9778d32083fc3aff1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
libjpeg,
libmcrypt,
libmhash,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "steghide";
version = "0.5.1.1";
src = fetchFromGitHub {
owner = "museoa";
repo = "steghide";
rev = finalAttrs.version;
hash = "sha256-uUXEipIUfu9AbG7Ekz+25JkWSEGzqA7sJHZqezLzUto=";
};
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
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 = {
homepage = "https://github.com/museoa/steghide";
description = "Open source steganography program";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
platforms = with lib.platforms; unix;
mainProgram = "steghide";
};
})
|