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
|
|
|
|
|
|
|
|
, cairo
|
|
|
|
, cmake
|
2023-08-04 22:07:22 +00:00
|
|
|
, ffmpeg
|
|
|
|
, freetype
|
|
|
|
, ghostscript
|
|
|
|
, glfw
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, qhull
|
|
|
|
, qtbase
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, xorg
|
|
|
|
, zeromq
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gr-framework";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.72.10";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sciapp";
|
|
|
|
repo = "gr";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-ZFaun8PBtPTmhZ0+OHzUu27NvcJGxsImh+c7ZvCTNa0=";
|
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 { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GR framework is a graphics library for visualisation applications";
|
|
|
|
homepage = "https://gr-framework.org";
|
|
|
|
maintainers = [ lib.maintainers.paveloom ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|