depot/third_party/nixpkgs/pkgs/by-name/gr/gr-framework/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

69 lines
1.1 KiB
Nix

{
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.6";
src = fetchFromGitHub {
owner = "sciapp";
repo = "gr";
rev = "v${version}";
hash = "sha256-XzOII13XwxkPZhtL4USkmUmJTL7dZImx4yVYJmhcn08=";
};
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;
maintainers = with maintainers; [ paveloom ];
platforms = platforms.unix;
};
}