diff --git a/flake.nix b/flake.nix index 95cfe23..b90684a 100644 --- a/flake.nix +++ b/flake.nix @@ -11,12 +11,14 @@ outputs = { nixpkgs, utils, ... }: let - compiler = "ghc92"; + compiler = "ghc810"; overlay = pkgsNew: pkgsOld: { cabal2nix-unwrapped = pkgsNew.haskell.lib.justStaticExecutables - pkgsNew.haskell.packages."${compiler}".cabal2nix; + # use cabal2nix from 9.2 here, because cabal2nix from 8.10 can't + # read cabal-version: 3.6 + pkgsNew.haskell.packages.ghc92.cabal2nix; haskell = pkgsOld.haskell // { packages = pkgsOld.haskell.packages // { diff --git a/nix-serve-ng.cabal b/nix-serve-ng.cabal index 2484fe7..adeb263 100644 --- a/nix-serve-ng.cabal +++ b/nix-serve-ng.cabal @@ -1,4 +1,4 @@ -cabal-version: 3.6 +cabal-version: 2.2 name: nix-serve-ng version: 1.0.1 synopsis: @@ -60,7 +60,8 @@ executable nix-serve if os(darwin) extra-libraries: c++ - hsc2hs-options: --cc clang++ + -- this needs cabal-version: 3.6 + -- hsc2hs-options: --cc clang++ elif os(linux) extra-libraries: stdc++ else