1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, qt5
, cmake
, cairo
, ffmpeg
, freetype
, ghostscript
, glfw
, libjpeg
, libtiff
, qhull
, xorg
, zeromq
}:
stdenv.mkDerivation rec {
pname = "gr-framework";
version = "0.73.5";
src = fetchFromGitHub {
owner = "sciapp";
repo = "gr";
rev = "v${version}";
hash = "sha256-9Py2r774GaUXWhF3yO3ceT1rPi/uqMVZVAo0xs9n+I0=";
};
patches = [
./patches/use-the-module-mode-to-search-for-the-LibXml2-package.patch
];
nativeBuildInputs = [
cmake
qt5.wrapQtAppsHook
];
buildInputs = [
cairo
ffmpeg
freetype
ghostscript
glfw
libjpeg
libtiff
qhull
qt5.qtbase
xorg.libX11
xorg.libXft
xorg.libXt
zeromq
];
preConfigure = ''
echo ${version} > version.txt
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "GR framework is a graphics library for visualisation applications";
homepage = "https://gr-framework.org";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ paveloom ];
};
}
|