mirror of
https://git.nerfingen.de/nerf/choirMail.git
synced 2024-11-21 15:09:33 +00:00
let nixpkgs choose library and compiler versions, hopefully nothing will brake lol
This commit is contained in:
parent
c04ffafaaf
commit
93a09e8402
3 changed files with 7 additions and 6 deletions
|
@ -76,7 +76,7 @@ executable choirMail
|
||||||
|
|
||||||
-- Other library packages from which modules are imported.
|
-- Other library packages from which modules are imported.
|
||||||
-- ^>=4.15.1.0
|
-- ^>=4.15.1.0
|
||||||
build-depends: base ^>=4.15.1.0
|
build-depends: base >=4.15.1.0 && < 4.18
|
||||||
,transformers
|
,transformers
|
||||||
,tomland >= 1.3.3.0
|
,tomland >= 1.3.3.0
|
||||||
,smtp-mail
|
,smtp-mail
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
{ pkgs , compiler ? "ghc902"}:
|
{ pkgs }:
|
||||||
pkgs.haskell.packages.${compiler}.callPackage ./choirMail.nix { }
|
pkgs.haskellPackages.callPackage ./choirMail.nix { }
|
||||||
|
|
|
@ -10,15 +10,16 @@
|
||||||
let
|
let
|
||||||
# name to be used as identifier for editor environments and such
|
# name to be used as identifier for editor environments and such
|
||||||
name = "Application";
|
name = "Application";
|
||||||
compiler = "ghc902";
|
# compiler = "ghc902";
|
||||||
|
|
||||||
in
|
in
|
||||||
flake-utils.lib.eachDefaultSystem ( system:
|
flake-utils.lib.eachDefaultSystem ( system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs {inherit system;};
|
pkgs = import nixpkgs {inherit system;};
|
||||||
hpkgs = pkgs.haskell.packages.${compiler};
|
# hpkgs = pkgs.haskell.packages.${compiler};
|
||||||
|
hpkgs = pkgs.haskellPackages;
|
||||||
in {
|
in {
|
||||||
packages = { default = (import ./default.nix) {inherit pkgs compiler;};};
|
packages = { default = (import ./default.nix) {inherit pkgs;};};
|
||||||
|
|
||||||
|
|
||||||
devShells =
|
devShells =
|
||||||
|
|
Loading…
Reference in a new issue