depot/pkgs/by-name/gr/gr-framework/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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.8";
src = fetchFromGitHub {
owner = "sciapp";
repo = "gr";
rev = "v${version}";
hash = "sha256-6RgNFGRprke7AUu24VS9iYUcWMWJ/DQ/LIvleyQgza4=";
};
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;
};
}