diff --git a/flake.nix b/flake.nix index 7dcf142f78ff8ceb5f8a7d540362e2567cc94663..54dcdefd1571bf6066c0db62d89fec2536f12dec 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { - description = "Horizon GHC Flake"; + description = "Horizon GHC Flake (9.6.x)"; nixConfig = { extra-substituters = "https://horizon.cachix.org"; @@ -26,28 +26,16 @@ "x86_64-darwin" "x86_64-linux" ]; - perSystem = { pkgs, system, ... }: + perSystem = { pkgs, system, ... }: rec { - let - - legacyPackages = { - ghc = pkgs.haskell.compiler.ghc96; - }; - - packages = legacyPackages; - - in - { - - _module.args.pkgs = import nixpkgs { - inherit system; - config.allowUnfree = true; - }; - - inherit legacyPackages; + _module.args.pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; - inherit packages; + legacyPackages.ghc = pkgs.haskell.compiler.ghc96; - }; + packages = legacyPackages; + }; }; }