2023-10-19 13:55:26 +00:00
|
|
|
{ lib, stdenv, fetchurl, libxml2, freetype, libGLU, libGL, glew
|
|
|
|
, qtbase, wrapQtAppsHook, autoPatchelfHook, python3
|
|
|
|
, cmake, libjpeg, llvmPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tulip";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "5.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-19 13:55:26 +00:00
|
|
|
url = "mirror://sourceforge/auber/tulip-${version}_src.tar.gz";
|
|
|
|
hash = "sha256-b+XFCS6Ks+EpwxgYFzWdRomfCpHXmZHXnrQM+ZSLN/0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ libxml2 freetype glew libjpeg qtbase python3 ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ llvmPackages.openmp ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ libGLU libGL ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
qtWrapperArgs = [ ''--prefix PATH : ${lib.makeBinPath [ python3 ]}'' ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
# error: format string is not a string literal (potentially insecure)
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-format-security";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# FIXME: "make check" needs Docbook's DTD 4.4, among other things.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A visualization framework for the analysis and visualization of relational data";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Tulip is an information visualization framework dedicated to the
|
|
|
|
analysis and visualization of relational data. Tulip aims to
|
|
|
|
provide the developer with a complete library, supporting the design
|
|
|
|
of interactive information visualization applications for relational
|
|
|
|
data that can be tailored to the problems he or she is addressing.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = "http://tulip.labri.fr/";
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
maintainers = [ ];
|
2023-10-19 13:55:26 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|