mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
69 lines
1.0 KiB
Nix
69 lines
1.0 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;
|
|
};
|
|
}
|