diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Revision history for cabal-appimage
 
+## 0.4.1.0 -- 2025-01-12
+
+* Build with GHC 9.12.
+
 
 ## 0.4.0.5 -- 2024-09-02
 
diff --git a/cabal-appimage.cabal b/cabal-appimage.cabal
--- a/cabal-appimage.cabal
+++ b/cabal-appimage.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.0
 name:                cabal-appimage
-version:             0.4.0.5
+version:             0.4.1.0
 synopsis:            Cabal support for creating AppImage applications
 description:         This package provides a build hook automating the
                      creation of AppImage bundles.
@@ -10,15 +10,15 @@
 license-file:        LICENSE
 author:              Gabriele Sales
 maintainer:          gbrsales@gmail.com
-copyright:           2020-2024 Gabriele Sales
+copyright:           2020-2025 Gabriele Sales
 category:            Development, Distribution, Linux
 extra-source-files:  CHANGELOG.md
 build-type:          Simple
 
 library
   exposed-modules:     Distribution.AppImage
-  build-depends:       base >=4.11.0.0 && <4.21,
-                       Cabal >=2.4.1.0 && <3.13,
+  build-depends:       base >=4.11.0.0 && <4.22,
+                       Cabal >=2.4.1.0 && <3.15,
                        filepath >=1.4.2.1 && <1.6
   hs-source-dirs:      src
   default-language:    Haskell2010
diff --git a/src/Distribution/AppImage.hs b/src/Distribution/AppImage.hs
--- a/src/Distribution/AppImage.hs
+++ b/src/Distribution/AppImage.hs
@@ -1,6 +1,6 @@
 {-|
 Module:    Distribution.AppImage
-Copyright: 2020 Gabriele Sales
+Copyright: 2020-2025 Gabriele Sales
 
 This module provides a custom build hook for automating the creation of AppImage
 bundles.
@@ -10,6 +10,7 @@
 must be already present on the system.
 -}
 
+{-# LANGUAGE CPP             #-}
 {-# LANGUAGE RecordWildCards #-}
 
 module Distribution.AppImage
@@ -78,7 +79,11 @@
 
 makeBundle :: Args -> BuildFlags -> PackageDescription -> LocalBuildInfo -> AppImage -> IO ()
 makeBundle args flags pkg buildInfo app@AppImage{..} = do
+#if MIN_VERSION_GLASGOW_HASKELL(9,12,0,0)
+  let bdir = interpretSymbolicPathLBI buildInfo (buildDir buildInfo)
+#else
   let bdir = buildDir buildInfo
+#endif
       verb = fromFlagOrDefault normal (buildVerbosity flags)
   unless (hasExecutable pkg appName) $
     die' verb ("No executable defined for the AppImage bundle: " ++ appName)
