Skip to content

Commit

Permalink
nix: update from ghc 8.4.3 to ghc 9.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rgoulter committed May 30, 2022
1 parent f5b38fe commit 7576644
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 34 deletions.
4 changes: 2 additions & 2 deletions default.nix
@@ -1,5 +1,5 @@
{ nixpkgs ? import ./nixpkgs-with-ghc843.nix
, compiler ? "ghc843"
{ nixpkgs ? import <nixpkgs> {}
, compiler ? "ghc902"
}:

nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./my-hakyll-blog.nix { }
4 changes: 2 additions & 2 deletions example.com-shell.nix
@@ -1,5 +1,5 @@
{ nixpkgs ? import ./nixpkgs-with-ghc843.nix
, compiler ? "ghc843"
{ nixpkgs ? import <nixpkgs> {}
, compiler ? "ghc902"
}:

nixpkgs.mkShell {
Expand Down
9 changes: 4 additions & 5 deletions flake.lock

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

12 changes: 2 additions & 10 deletions flake.nix
Expand Up @@ -4,23 +4,15 @@
description = "static site generator using hakyll";

inputs = {
# A sufficiently old version of nixpkgs such that
# it has ghc 8.4.3.
#
# Details found by using lazamar's nix package versions tool:
# https://lazamar.co.uk/nix-versions/
nixpkgs = {
url = "github:NixOS/nixpkgs/a3962299f14944a0e9ccf8fd84bd7be524b74cd6";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs { inherit system; }).pkgs;
compiler = "ghc843";
compiler = "ghc902";
in rec {
packages.my-hakyll-blog =
pkgs.haskell.packages.${compiler}.callPackage ./my-hakyll-blog.nix { };
Expand Down
11 changes: 0 additions & 11 deletions nixpkgs-with-ghc843.nix

This file was deleted.

4 changes: 2 additions & 2 deletions shell.nix
@@ -1,5 +1,5 @@
{ nixpkgs ? import ./nixpkgs-with-ghc843.nix
, compiler ? "ghc843"
{ nixpkgs ? import <nixpkgs> {}
, compiler ? "ghc902"
}:

(import ./default.nix { inherit nixpkgs compiler; }).env
4 changes: 2 additions & 2 deletions stack-shell.nix
@@ -1,5 +1,5 @@
{ nixpkgs ? import ./nixpkgs-with-ghc843.nix
, compiler ? "ghc843"
{ nixpkgs ? import <nixpkgs> {}
, compiler ? "ghc902"
}:

nixpkgs.mkShell {
Expand Down
12 changes: 12 additions & 0 deletions stack.yaml.lock
@@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
snapshots:
- completed:
size: 504336
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/12/12.yaml
sha256: 11db5c37144d13fe6b56cd511050b4e6ffe988f6edb8e439c2432fc9fcdf50c3
original: lts-12.12

0 comments on commit 7576644

Please sign in to comment.