about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/mathgl/default.nix
blob: 811395d27588bfe9330e6213d33c02db93ee499c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, stdenv
, fetchurl
, cmake
, zlib
, libpng
, libGL
}:
stdenv.mkDerivation rec {
  pname = "mathgl";
  version = "8.0.1";

  src = fetchurl {
    url = "mirror://sourceforge/mathgl/mathgl-${version}.tar.gz";
    sha256 = "sha256-yoS/lIDDntMRLpIMFs49jyiYaY9iiW86V3FBKGIqVao=";
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    zlib
    libpng
    libGL
  ];

  meta = with lib; {
    description = "A library for scientific data visualization";
    homepage = "https://mathgl.sourceforge.net/";
    license = with licenses; [ gpl3 lgpl3 ];
    platforms = platforms.linux;
    maintainers = [ maintainers.GabrielDougherty ];
  };
}