1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, libpng
6, zlib
7, qt4
8, bison
9, flex
10, libGLU
11, python3Packages
12}:
13
14stdenv.mkDerivation rec {
15 pname = "seexpr";
16 version = "3.0.1";
17
18 src = fetchFromGitHub {
19 owner = "wdas";
20 repo = "SeExpr";
21 rev = "v${version}";
22 sha256 = "sha256-r6mgyb/FGz4KYZOgLDgmIqjO+PSmneD3KUWjymZXtEk=";
23 };
24
25 cmakeFlags = [
26 "-DENABLE_SSE4=OFF"
27 # file RPATH_CHANGE could not write new RPATH
28 "-DCMAKE_SKIP_BUILD_RPATH=ON"
29 ];
30
31 nativeBuildInputs = [ cmake ];
32 buildInputs = [ libGLU libpng zlib qt4 python3Packages.pyqt4 python3Packages.boost bison flex ];
33
34 # https://github.com/wdas/SeExpr/issues/106
35 postPatch = ''
36 substituteInPlace src/build/seexpr2.pc.in \
37 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
38 '';
39
40 meta = with lib; {
41 description = "Embeddable expression evaluation engine from Disney Animation";
42 homepage = "https://wdas.github.io/SeExpr/";
43 maintainers = with maintainers; [ hodapp ];
44 license = licenses.asl20;
45 platforms = platforms.linux;
46 };
47}