|
22 | 22 | flake = false;
|
23 | 23 | };
|
24 | 24 |
|
25 |
| - hackage-sources.url = "path:./flake_hackage"; |
| 25 | + # List of hackage dependencies |
| 26 | + lsp = { |
| 27 | + url = "https://hackage.haskell.org/package/lsp-1.4.0.0/lsp-1.4.0.0.tar.gz"; |
| 28 | + flake = false; |
| 29 | + }; |
| 30 | + lsp-types = { |
| 31 | + url = "https://hackage.haskell.org/package/lsp-types-1.4.0.1/lsp-types-1.4.0.1.tar.gz"; |
| 32 | + flake = false; |
| 33 | + }; |
| 34 | + lsp-test = { |
| 35 | + url = "https://hackage.haskell.org/package/lsp-test-0.14.0.2/lsp-test-0.14.0.2.tar.gz"; |
| 36 | + flake = false; |
| 37 | + }; |
| 38 | + ghc-exactprint = { |
| 39 | + url = "https://hackage.haskell.org/package/ghc-exactprint-1.4.1/ghc-exactprint-1.4.1.tar.gz"; |
| 40 | + flake = false; |
| 41 | + }; |
| 42 | + constraints-extras = { |
| 43 | + url = "https://hackage.haskell.org/package/constraints-extras-0.3.2.1/constraints-extras-0.3.2.1.tar.gz"; |
| 44 | + flake = false; |
| 45 | + }; |
| 46 | + retrie = { |
| 47 | + url = "https://hackage.haskell.org/package/retrie-1.2.0.1/retrie-1.2.0.1.tar.gz"; |
| 48 | + flake = false; |
| 49 | + }; |
| 50 | + fourmolu = { |
| 51 | + url = "https://hackage.haskell.org/package/fourmolu-0.5.0.1/fourmolu-0.5.0.1.tar.gz"; |
| 52 | + flake = false; |
| 53 | + }; |
| 54 | + hlint = { |
| 55 | + url = "https://hackage.haskell.org/package/hlint-3.3.6/hlint-3.3.6.tar.gz"; |
| 56 | + flake = false; |
| 57 | + }; |
26 | 58 | };
|
27 | 59 | outputs =
|
28 |
| - { self, nixpkgs, flake-compat, flake-utils, pre-commit-hooks, gitignore, hackage-sources }: |
| 60 | + inputs@{ self, nixpkgs, flake-compat, flake-utils, pre-commit-hooks, gitignore, ... }: |
29 | 61 | {
|
30 | 62 | overlay = final: prev:
|
31 | 63 | with prev;
|
32 | 64 | let
|
33 |
| - hackage = hackage-sources.inputs; |
34 |
| - |
35 | 65 | haskellOverrides = hself: hsuper: {
|
36 | 66 | # we override mkDerivation here to apply the following
|
37 | 67 | # tweak to each haskell package:
|
|
79 | 109 | # We need an older version
|
80 | 110 | hiedb = hself.hiedb_0_4_1_0;
|
81 | 111 |
|
82 |
| - lsp = hsuper.callCabal2nix "lsp" hackage.lsp {}; |
83 |
| - lsp-types = hsuper.callCabal2nix "lsp-types" hackage.lsp-types {}; |
84 |
| - lsp-test = hsuper.callCabal2nix "lsp-test" hackage.lsp-test {}; |
| 112 | + lsp = hsuper.callCabal2nix "lsp" inputs.lsp {}; |
| 113 | + lsp-types = hsuper.callCabal2nix "lsp-types" inputs.lsp-types {}; |
| 114 | + lsp-test = hsuper.callCabal2nix "lsp-test" inputs.lsp-test {}; |
85 | 115 |
|
86 | 116 | implicit-hie-cradle = hself.callCabal2nix "implicit-hie-cradle"
|
87 | 117 | (builtins.fetchTarball {
|
|
135 | 165 | } // (flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ])
|
136 | 166 | (system:
|
137 | 167 | let
|
138 |
| - hackage = hackage-sources.inputs; |
139 | 168 | pkgs = import nixpkgs {
|
140 | 169 | inherit system;
|
141 | 170 | overlays = [ self.overlay ];
|
|
174 | 203 | };
|
175 | 204 |
|
176 | 205 | ghc901Config = (import ./configuration-ghc-901.nix) { inherit pkgs; };
|
177 |
| - ghc921Config = (import ./configuration-ghc-921.nix) { inherit pkgs hackage; }; |
| 206 | + ghc921Config = (import ./configuration-ghc-921.nix) { inherit pkgs inputs; }; |
178 | 207 |
|
179 | 208 | # GHC versions
|
180 | 209 | ghcDefault = pkgs.hlsHpkgs ("ghc"
|
|
0 commit comments