2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-08-04 22:07:22 +00:00
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, nix-update-script
|
|
|
|
|
|
|
|
, cmake
|
2024-01-02 11:29:13 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
|
|
|
|
, cairo
|
2023-08-04 22:07:22 +00:00
|
|
|
, ffmpeg
|
|
|
|
, freetype
|
|
|
|
, ghostscript
|
|
|
|
, glfw
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, qhull
|
|
|
|
, qtbase
|
|
|
|
, xorg
|
|
|
|
, zeromq
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gr-framework";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.72.11";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sciapp";
|
|
|
|
repo = "gr";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-HspDRqO/JKpPeHOfctYAOwwR3y1u+GW3v0OnN7OfLT4=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
./Use-the-module-mode-to-search-for-the-LibXml2-package.patch
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
freetype
|
|
|
|
ghostscript
|
|
|
|
glfw
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
qhull
|
|
|
|
qtbase
|
|
|
|
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;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ paveloom ];
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
}
|