nixpkgs/pkgs/development/compilers/seexpr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

2021-11-16 22:39:27 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libpng
, zlib
, qt4
, bison
, flex
, libGLU
, python3Packages
}:
2021-11-16 16:24:51 +00:00
stdenv.mkDerivation rec {
pname = "seexpr";
2021-11-16 16:24:51 +00:00
version = "3.0.1";
src = fetchFromGitHub {
2021-11-16 22:39:27 +00:00
owner = "wdas";
repo = "SeExpr";
rev = "v${version}";
2021-11-16 16:24:51 +00:00
sha256 = "sha256-r6mgyb/FGz4KYZOgLDgmIqjO+PSmneD3KUWjymZXtEk=";
};
cmakeFlags = [
"-DENABLE_SSE4=OFF"
# file RPATH_CHANGE could not write new RPATH
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
2021-11-16 16:24:51 +00:00
nativeBuildInputs = [ cmake ];
2021-11-16 16:24:51 +00:00
buildInputs = [ libGLU libpng zlib qt4 python3Packages.pyqt4 python3Packages.boost bison flex ];
2022-05-18 18:44:27 +00:00
# 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";
2021-11-16 16:24:51 +00:00
homepage = "https://wdas.github.io/SeExpr/";
maintainers = with maintainers; [ hodapp ];
license = licenses.asl20;
platforms = platforms.linux;
};
}