2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
|
|
|
qt5,
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cmake,
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cairo,
|
|
|
|
ffmpeg,
|
|
|
|
freetype,
|
|
|
|
ghostscript,
|
|
|
|
glfw,
|
|
|
|
libjpeg,
|
|
|
|
libtiff,
|
|
|
|
qhull,
|
|
|
|
xorg,
|
|
|
|
zeromq,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gr-framework";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.73.6";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sciapp";
|
|
|
|
repo = "gr";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-XzOII13XwxkPZhtL4USkmUmJTL7dZImx4yVYJmhcn08=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
patches = [ ./use-the-module-mode-to-search-for-the-LibXml2-package.patch ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2024-06-05 15:53:02 +00:00
|
|
|
qt5.wrapQtAppsHook
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
freetype
|
|
|
|
ghostscript
|
|
|
|
glfw
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
qhull
|
2024-06-05 15:53:02 +00:00
|
|
|
qt5.qtbase
|
2023-08-04 22:07:22 +00:00
|
|
|
xorg.libX11
|
|
|
|
xorg.libXft
|
|
|
|
xorg.libXt
|
|
|
|
zeromq
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo ${version} > version.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = with lib; {
|
2023-08-04 22:07:22 +00:00
|
|
|
description = "GR framework is a graphics library for visualisation applications";
|
|
|
|
homepage = "https://gr-framework.org";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ paveloom ];
|
2024-07-27 06:49:29 +00:00
|
|
|
platforms = platforms.unix;
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
}
|