nixpkgs/pkgs/by-name/gr/gr-framework/package.nix
2024-07-22 21:18:14 +03:00

68 lines
1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
qt6,
cairo,
ffmpeg,
ghostscript,
glfw,
libtiff,
qhull,
xercesc,
xorg,
zeromq,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "gr-framework";
version = "0.73.7";
src = fetchFromGitHub {
owner = "sciapp";
repo = "gr";
rev = "v${version}";
hash = "sha256-Xd1x6RUlre/5oxq0wiVKkIAuGKgtoNY/5aa7dvmn71U=";
};
nativeBuildInputs = [
cmake
ninja
qt6.wrapQtAppsHook
];
buildInputs = [
cairo
ffmpeg
ghostscript
glfw
libtiff
qhull
qt6.qtbase
xercesc
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;
};
}