diff --git a/SetupHooks.hs b/SetupHooks.hs new file mode 100644 index 0000000..30772ad --- /dev/null +++ b/SetupHooks.hs @@ -0,0 +1,8 @@ +module SetupHooks where +import Distribution.Simple.SetupHooks ( SetupHooks, noSetupHooks ) + +setupHooks :: SetupHooks +setupHooks = + noSetupHooks + { configureHooks = myConfigureHooks + , buildHooks = myBuildHooks } diff --git a/flake.nix b/flake.nix index 2fc3ff9..f319436 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,7 @@ }; packages.${system} = { default = - (pkgs.haskell.packages.ghc912.callCabal2nix "hs-rgfw" ./. { + (pkgs.haskell.packages.ghc914.callCabal2nix "hs-rgfw" ./. { xi = pkgs.libxi; gl = pkgs.libGL; xcursor = pkgs.libxcursor; diff --git a/hs-rgfw.cabal b/hs-rgfw.cabal index 52d58c1..f9558fc 100644 --- a/hs-rgfw.cabal +++ b/hs-rgfw.cabal @@ -1,12 +1,18 @@ -cabal-version: 3.0 +cabal-version: 3.14 name: hs-rgfw version: 0.1.0 license: GPL-3.0-only license-file: LICENSE author: Andromeda maintainer: Matrix @andromeda:tchncs.de -build-type: Simple +build-type: Hooks extra-doc-files: README.md + +custom-setup + setup-depends: + base + , Cabal-hooks + common warnings ghc-options: -Wall