diff --git a/manifest.dhall b/manifest.dhall
index e5b6a521706e41f57b487ec8b9845362a35f471c..5bdd38ed7326a42fe9369b4a6510e4c7ce039f13 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -532,6 +532,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "test-framework" "0.8.2.0"
     , callHackage "test-framework-hunit" "0.3.0.2"
     , callHackage "test-framework-quickcheck2" "0.3.0.5"
+    , callHackage "texmath" "0.12.5.4"
     , callHackage "text-display" "0.0.3.0"
     , callHackage "text-manipulate" "0.3.1.0"
     , callHackage "text-metrics" "0.3.2"
diff --git a/overlay.nix b/overlay.nix
index 61bb58dbf4f087b19740ff0685e30fbde2e7aac5..37bb93dd5e95545aabfdfc618c357b0583820c16 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -695,6 +695,8 @@ final: prev: with pkgs.haskell.lib; {
 
   test-framework-quickcheck2 = prev.callPackage (./pkgs/test-framework-quickcheck2.nix) { };
 
+  texmath = prev.callPackage (./pkgs/texmath.nix) { };
+
   text-display = prev.callPackage (./pkgs/text-display.nix) { };
 
   text-manipulate = prev.callPackage (./pkgs/text-manipulate.nix) { };
diff --git a/pkgs/texmath.nix b/pkgs/texmath.nix
new file mode 100644
index 0000000000000000000000000000000000000000..835f222df5c387fdffcec2bde3ee0525ffd5bf7a
--- /dev/null
+++ b/pkgs/texmath.nix
@@ -0,0 +1,61 @@
+{ mkDerivation
+, base
+, bytestring
+, containers
+, directory
+, filepath
+, lib
+, mtl
+, pandoc-types
+, parsec
+, pretty-show
+, split
+, syb
+, tagged
+, tasty
+, tasty-golden
+, text
+, xml
+}:
+mkDerivation {
+  pname = "texmath";
+  version = "0.12.5.4";
+  sha256 = "98423b2e07d90d3f50afa7cd4755c8e65bc8712db248ba030bc478518646c8b6";
+  isLibrary = true;
+  isExecutable = true;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    containers
+    mtl
+    pandoc-types
+    parsec
+    split
+    syb
+    text
+    xml
+  ];
+  testHaskellDepends = [
+    base
+    bytestring
+    directory
+    filepath
+    pretty-show
+    tagged
+    tasty
+    tasty-golden
+    text
+    xml
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/jgm/texmath";
+  description = "Conversion between math formats";
+  license = lib.licenses.gpl2Only;
+  broken = false;
+}