diff --git a/pkgs/development/libraries/mathgl/default.nix b/pkgs/development/libraries/mathgl/default.nix new file mode 100644 index 00000000000..811395d2758 --- /dev/null +++ b/pkgs/development/libraries/mathgl/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a6018360ba7..43d53ef0873 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22547,6 +22547,8 @@ with pkgs; marisa = callPackage ../development/libraries/marisa { }; + mathgl = callPackage ../development/libraries/mathgl { }; + matio = callPackage ../development/libraries/matio { }; matterhorn = haskell.lib.compose.justStaticExecutables haskellPackages.matterhorn;