diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 94e3737b2459453..48446a265edfd25 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5237,6 +5237,12 @@ githubId = 606000; name = "Gabriel Adomnicai"; }; + GabrielDougherty = { + email = "contact@gabrieldougherty.com"; + github = "GabrielDougherty"; + githubId = 10541219; + name = "Gabriel Dougherty"; + }; garaiza-93 = { email = "araizagustavo93@gmail.com"; github = "garaiza-93"; diff --git a/pkgs/development/libraries/mathgl/default.nix b/pkgs/development/libraries/mathgl/default.nix new file mode 100644 index 000000000000000..1d5f1564f9f24ad --- /dev/null +++ b/pkgs/development/libraries/mathgl/default.nix @@ -0,0 +1,32 @@ +{ 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="; + }; + + buildInputs = [ + cmake + zlib + libpng + libGL + ]; + + meta = with lib; { + description = "A library for scientific data visualization"; + homepage = "https://https://mathgl.sourceforge.net/"; + license = with licenses; [ gpl3 lgpl3 ]; + platforms = platforms.linux ++ platforms.windows; + maintainers = [ maintainers.GabrielDougherty ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c7c76b1bd82bbb5..0e96f2ce4e2219d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2191,6 +2191,8 @@ with pkgs; description = mame.meta.description + " (tools only)"; } (lib.getOutput "tools" mame); + mathgl = callPackage ../development/libraries/mathgl { }; + mednafen = callPackage ../applications/emulators/mednafen { }; mednafen-server = callPackage ../applications/emulators/mednafen/server.nix { };