From 8730c248e8ce5dd3e6bde1b58828713b39be8a6e Mon Sep 17 00:00:00 2001 From: andromeda Date: Sun, 26 Apr 2026 12:22:23 +0200 Subject: [PATCH] hooks --- SetupHooks.hs | 8 ++++++++ flake.nix | 2 +- hs-rgfw.cabal | 10 ++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 SetupHooks.hs 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