1{ lib
2, stdenv
3, fetchurl
4, cmake
5, zlib
6, libpng
7, libGL
8}:
9stdenv.mkDerivation rec {
10 pname = "mathgl";
11 version = "8.0.1";
12
13 src = fetchurl {
14 url = "mirror://sourceforge/mathgl/mathgl-${version}.tar.gz";
15 sha256 = "sha256-yoS/lIDDntMRLpIMFs49jyiYaY9iiW86V3FBKGIqVao=";
16 };
17
18 nativeBuildInputs = [
19 cmake
20 ];
21
22 buildInputs = [
23 zlib
24 libpng
25 libGL
26 ];
27
28 meta = with lib; {
29 description = "A library for scientific data visualization";
30 homepage = "https://mathgl.sourceforge.net/";
31 license = with licenses; [ gpl3 lgpl3 ];
32 platforms = platforms.linux;
33 maintainers = [ maintainers.GabrielDougherty ];
34 };
35}