Loading pkgs/applications/science/misc/tulip/default.nix +43 −13 Original line number Diff line number Diff line { lib, stdenv, fetchurl, libxml2, freetype, libGLU, libGL, glew , qtbase, wrapQtAppsHook, autoPatchelfHook, python3 , cmake, libjpeg, llvmPackages }: { lib, stdenv, fetchurl, libxml2, freetype, libGLU, libGL, glew, qtbase, wrapQtAppsHook, autoPatchelfHook, python3, cmake, libjpeg, llvmPackages, }: stdenv.mkDerivation rec { pname = "tulip"; Loading @@ -11,21 +25,37 @@ stdenv.mkDerivation rec { hash = "sha256-7z21WkPi1v2AGishDmXZPAedMjgXPRnpUiHTzEnc5LY="; }; nativeBuildInputs = [ cmake wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; nativeBuildInputs = [ cmake wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; buildInputs = [ libxml2 freetype glew libjpeg qtbase python3 ] buildInputs = [ libxml2 freetype glew libjpeg qtbase python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libGLU libGL ]; ++ lib.optionals stdenv.hostPlatform.isLinux [ libGLU libGL ]; qtWrapperArgs = [ ''--prefix PATH : ${lib.makeBinPath [ python3 ]}'' ]; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ env.NIX_CFLAGS_COMPILE = # error: invalid conversion from 'unsigned char*' to 'char*' "-fpermissive " + (lib.optionalString stdenv.hostPlatform.isDarwin (toString [ # fatal error: 'Python.h' file not found "-I${python3}/include/${python3.libPrefix}" # error: format string is not a string literal (potentially insecure) "-Wno-format-security" ]); ])); # FIXME: "make check" needs Docbook's DTD 4.4, among other things. doCheck = false; Loading Loading
pkgs/applications/science/misc/tulip/default.nix +43 −13 Original line number Diff line number Diff line { lib, stdenv, fetchurl, libxml2, freetype, libGLU, libGL, glew , qtbase, wrapQtAppsHook, autoPatchelfHook, python3 , cmake, libjpeg, llvmPackages }: { lib, stdenv, fetchurl, libxml2, freetype, libGLU, libGL, glew, qtbase, wrapQtAppsHook, autoPatchelfHook, python3, cmake, libjpeg, llvmPackages, }: stdenv.mkDerivation rec { pname = "tulip"; Loading @@ -11,21 +25,37 @@ stdenv.mkDerivation rec { hash = "sha256-7z21WkPi1v2AGishDmXZPAedMjgXPRnpUiHTzEnc5LY="; }; nativeBuildInputs = [ cmake wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; nativeBuildInputs = [ cmake wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; buildInputs = [ libxml2 freetype glew libjpeg qtbase python3 ] buildInputs = [ libxml2 freetype glew libjpeg qtbase python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libGLU libGL ]; ++ lib.optionals stdenv.hostPlatform.isLinux [ libGLU libGL ]; qtWrapperArgs = [ ''--prefix PATH : ${lib.makeBinPath [ python3 ]}'' ]; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [ env.NIX_CFLAGS_COMPILE = # error: invalid conversion from 'unsigned char*' to 'char*' "-fpermissive " + (lib.optionalString stdenv.hostPlatform.isDarwin (toString [ # fatal error: 'Python.h' file not found "-I${python3}/include/${python3.libPrefix}" # error: format string is not a string literal (potentially insecure) "-Wno-format-security" ]); ])); # FIXME: "make check" needs Docbook's DTD 4.4, among other things. doCheck = false; Loading