about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/seexpr/default.nix
blob: 210daae3745931db0c18a723c86a18fc7a2292fc (plain) (blame)
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
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libpng
, zlib
, qt4
, bison
, flex
, libGLU
, python3Packages
}:

stdenv.mkDerivation rec {
  pname = "seexpr";
  version = "3.0.1";

  src = fetchFromGitHub {
    owner = "wdas";
    repo = "SeExpr";
    rev = "v${version}";
    sha256 = "sha256-r6mgyb/FGz4KYZOgLDgmIqjO+PSmneD3KUWjymZXtEk=";
  };

  cmakeFlags = [
    "-DENABLE_SSE4=OFF"
    # file RPATH_CHANGE could not write new RPATH
    "-DCMAKE_SKIP_BUILD_RPATH=ON"
  ];

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libGLU libpng zlib qt4 python3Packages.pyqt4 python3Packages.boost bison flex ];

  # https://github.com/wdas/SeExpr/issues/106
  postPatch = ''
    substituteInPlace src/build/seexpr2.pc.in \
      --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
  '';

  meta = with lib; {
    description = "Embeddable expression evaluation engine from Disney Animation";
    homepage = "https://wdas.github.io/SeExpr/";
    maintainers = with maintainers; [ hodapp ];
    license = licenses.asl20;
    platforms = platforms.linux;
  };
}