Skip to content

Commit

Permalink
Merge pull request juspay#3 from arjunkathuria/GHC-927
Browse files Browse the repository at this point in the history
GHC 927 upgrade
  • Loading branch information
aravindgopall authored Sep 30, 2023
2 parents dc01b0f + 54c4d46 commit 991064c
Show file tree
Hide file tree
Showing 8 changed files with 415 additions and 34 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 3 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages:
.

19 changes: 0 additions & 19 deletions euler.yaml

This file was deleted.

304 changes: 304 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";

## Use Juspay upstream after PR merged - https://github.com/juspay/beam-mysql/pull/40
beam-mysql.url = "github:arjunkathuria/beam-mysql/GHC-927";
beam-mysql.inputs.nixpkgs.follows = "nixpkgs";
beam-mysql.inputs.haskell-flake.follows = "haskell-flake";
};

outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ withSystem, ... }: {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.haskell-flake.flakeModule
];
perSystem = { self', pkgs, lib, config, ... }: {
haskellProjects.default = {
projectFlakeName = "sequelize";
basePackages = pkgs.haskell.packages.ghc927;
imports = [
inputs.beam-mysql.haskellFlakeProjectModules.output
];
settings = {
beam-postgres.check = false;
beam-mysql.jailbreak = true;
generic-lens.check = false;
};
autoWire = [ "packages" "checks" "devShells" "apps"];
};
};
});
}
Loading

0 comments on commit 991064c

Please sign in to comment.