Skip to content

Commit fd44687

Browse files
authored
Merge pull request #1241 from peterbecich/fix-nix-flake
fix `flake.nix` for Linux
2 parents e5dd400 + 99ad012 commit fd44687

File tree

4 files changed

+12
-202
lines changed

4 files changed

+12
-202
lines changed

.github/workflows/nix-flake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
nix:
1111
strategy:
12-
fail-fast: true
12+
fail-fast: false
1313
matrix:
1414
os:
1515
- ubuntu-latest

flake.lock

Lines changed: 4 additions & 131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,12 @@
11
{
22
inputs = {
3-
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
3+
nixpkgs.url = "github:nixos/nixpkgs/haskell-updates";
44
flake-parts.url = "github:hercules-ci/flake-parts";
55
haskell-flake.url = "github:srid/haskell-flake";
66
treefmt-nix.url = "github:numtide/treefmt-nix";
77
flake-root.url = "github:srid/flake-root";
88
mission-control.url = "github:Platonic-Systems/mission-control";
99

10-
linear-generics = {
11-
url = "github:linear-generics/linear-generics";
12-
flake = false;
13-
};
14-
15-
stylish-haskell = {
16-
url = "github:haskell/stylish-haskell";
17-
flake = false;
18-
};
19-
20-
nothunks = {
21-
url = "github:input-output-hk/nothunks";
22-
flake = false;
23-
};
24-
25-
hls-hlint-plugin = {
26-
url = "github:haskell/haskell-language-server?dir=plugins/hls-hlint-plugin";
27-
flake = false;
28-
};
29-
hls-floskell-plugin = {
30-
url = "github:haskell/haskell-language-server?dir=plugins/hls-floskell-plugin";
31-
flake = false;
32-
};
33-
hls-ormolu-plugin = {
34-
url = "github:haskell/haskell-language-server?dir=plugins/hls-ormolu-plugin";
35-
flake = false;
36-
};
37-
hls-graph = {
38-
url = "github:haskell/haskell-language-server?dir=hls-graph";
39-
flake = false;
40-
};
4110
nixpkgs-140774-workaround.url = "github:srid/nixpkgs-140774-workaround";
4211
};
4312

@@ -59,47 +28,15 @@
5928
inputs.nixpkgs-140774-workaround.haskellFlakeProjectModules.default
6029
];
6130
packages.hackage-server.root = ./.; # Auto-discovered by haskell-flake
31+
6232
overrides = self: super: {
6333
Cabal = super.Cabal_3_10_1_0;
6434
Cabal-syntax = super.Cabal-syntax_3_10_1_0;
65-
doctest-parallel = super.doctest-parallel_0_3_0_1;
66-
67-
ghc-lib-parser = super.ghc-lib-parser_9_4_4_20221225;
68-
ghc-lib-parser-ex = super.ghc-lib-parser-ex_9_4_0_0;
69-
text = super.text_2_0_2;
70-
parsec = self.callHackage "parsec" "3.1.16.1" {};
71-
72-
chell = pkgs.haskell.lib.doJailbreak (self.callHackage "chell" "0.5.0.1" {});
73-
ghc-boot-th = self.callHackage "ghc-boot-th" "9.2.1" {};
74-
hedgehog = self.callHackage "hedgehog" "1.2" {};
75-
tasty-hedgehog = self.callHackage "tasty-hedgehog" "1.4.0.0" {};
76-
optparse-applicative = pkgs.haskell.lib.doJailbreak (super.optparse-applicative_0_15_1_0);
77-
haddock-library = pkgs.haskell.lib.doJailbreak (self.callHackage "haddock-library" "1.11.0" {});
78-
79-
th-abstraction = self.callHackage "th-abstraction" "0.4.5.0" {};
80-
stylish-haskell = super.callCabal2nix "stylish-haskell" inputs.stylish-haskell {};
81-
82-
nothunks = super.callCabal2nix "nothunks" inputs.nothunks {};
83-
84-
# requirements of HLS
85-
# TODO: fix HLS https://github.com/haskell/haskell-language-server/issues/3518
86-
ormolu = self.callHackage "ormolu" "0.5.3.0" {};
87-
fourmolu = pkgs.haskell.lib.dontCheck (self.callHackage "fourmolu" "0.10.1.0" {});
88-
# hls-floskell-plugin = pkgs.haskell.lib.dontCheck (self.callHackage "hls-floskell-plugin" "1.0.2.0" {});
89-
# hls-floskell-plugin = self.callCabal2nix "hls-floskell-plugin" inputs.hls-floskell-plugin {};
90-
# hls-graph = self.callCabal2nix "hls-graph" inputs.hls-graph {};
91-
# hls-graph = self.callHackage "hls-graph" "1.9.0.0" {};
92-
# hls-hlint-plugin = self.callCabal2nix "hls-hlint-plugin" inputs.hls-hlint-plugin {};
93-
# hls-hlint-plugin = self.callHackage "hls-hlint-plugin" "1.1.2.0" {};
94-
# hls-ormolu-plugin = self.callCabal2nix "hls-ormolu-plugin" inputs.hls-ormolu-plugin {};
95-
# hls-ormolu-plugin = self.callHackage "hls-ormolu-plugin" "1.0.2.2" {};
96-
# hls-ormolu-plugin = self.callHackage "hls-ormolu-plugin" "1.0.3.0" {};
97-
# hls-plugin-api = self.callHackage "hls-plugin-api" "1.6.0.0" {};
98-
# hls-test-utils = self.callHackage "hls-test-utils" "1.5.0.0" {};
99-
100-
hlint = self.callHackage "hlint" "3.5" {};
10135

10236
ghcide = pkgs.haskell.lib.dontCheck (self.callHackage "ghcide" "1.9.0.0" {});
37+
38+
streamly = self.callHackage "streamly" "0.9.0" {};
39+
streamly_0_9_0 = self.callHackage "streamly" "0.9.0" {};
10340
};
10441
devShell = {
10542
hlsCheck.enable = false;

hackage-server.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ common defaults
135135
, scientific
136136
-- other dependencies shared by most components
137137
build-depends:
138-
, aeson ^>= 2.2.0.0
138+
, aeson >= 2.1.0.0 && < 2.3
139139
, Cabal >= 3.10.1.0 && < 3.12
140140
, Cabal-syntax >= 3.10.1.0 && < 3.12
141141
-- Cabal-syntax needs to be bound to constrain hackage-security
@@ -553,7 +553,7 @@ test-suite HighLevelTest
553553
build-depends:
554554
-- version constraints inherited from lib-server
555555
, HTTP
556-
, attoparsec-aeson ^>= 2.2.0.0
556+
, attoparsec-aeson >= 2.1.0.0 && < 2.3
557557
, base64-bytestring
558558
, random
559559
-- component-specific dependencies

0 commit comments

Comments
 (0)