let nixpkgs choose library and compiler versions, hopefully nothing will brake lol

This commit is contained in:
nerf van nerfingen 2023-03-10 00:01:01 +01:00
parent c04ffafaaf
commit 6c25f4a473
Signed by: nerf
GPG key ID: 1EC6F5573876CC80
3 changed files with 7 additions and 6 deletions

View file

@ -76,7 +76,7 @@ executable choirMail
-- Other library packages from which modules are imported.
-- ^>=4.15.1.0
build-depends: base ^>=4.15.1.0
build-depends: base >=4.15.1.0
,transformers
,tomland >= 1.3.3.0
,smtp-mail

View file

@ -1,2 +1,2 @@
{ pkgs , compiler ? "ghc902"}:
pkgs.haskell.packages.${compiler}.callPackage ./choirMail.nix { }
{ pkgs }:
pkgs.haskellPackages.callPackage ./choirMail.nix { }

View file

@ -10,15 +10,16 @@
let
# name to be used as identifier for editor environments and such
name = "Application";
compiler = "ghc902";
# compiler = "ghc902";
in
flake-utils.lib.eachDefaultSystem ( system:
let
pkgs = import nixpkgs {inherit system;};
hpkgs = pkgs.haskell.packages.${compiler};
# hpkgs = pkgs.haskell.packages.${compiler};
hpkgs = pkgs.haskellPackages;
in {
packages = { default = (import ./default.nix) {inherit pkgs compiler;};};
packages = { default = (import ./default.nix) {inherit pkgs;};};
devShells =