Skip to content

Commit ee0a0cc

Browse files
authored
Merge pull request #2557 from guibou/fix_flake
Fix nix flake by explicit version for `lsp-xxx` packages
2 parents 988f6ee + 5dac6af commit ee0a0cc

File tree

2 files changed

+88
-7
lines changed

2 files changed

+88
-7
lines changed

flake.lock

+70-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+18-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,22 @@
2121
url = "github:hercules-ci/gitignore.nix";
2222
flake = false;
2323
};
24+
25+
lsp-source = {
26+
url = "https://hackage.haskell.org/package/lsp-1.4.0.0/lsp-1.4.0.0.tar.gz";
27+
flake = false;
28+
};
29+
lsp-types-source = {
30+
url = "https://hackage.haskell.org/package/lsp-types-1.4.0.0/lsp-types-1.4.0.0.tar.gz";
31+
flake = false;
32+
};
33+
lsp-test-source = {
34+
url = "https://hackage.haskell.org/package/lsp-test-0.14.0.2/lsp-test-0.14.0.2.tar.gz";
35+
flake = false;
36+
};
2437
};
2538
outputs =
26-
{ self, nixpkgs, flake-compat, flake-utils, pre-commit-hooks, gitignore }:
39+
{ self, nixpkgs, flake-compat, flake-utils, pre-commit-hooks, gitignore, lsp-source, lsp-types-source, lsp-test-source }:
2740
{
2841
overlay = final: prev:
2942
with prev;
@@ -75,6 +88,10 @@
7588
# We need an older version
7689
hiedb = hself.hiedb_0_4_1_0;
7790

91+
lsp = hsuper.callCabal2nix "lsp" lsp-source {};
92+
lsp-types = hsuper.callCabal2nix "lsp-types" lsp-types-source {};
93+
lsp-test = hsuper.callCabal2nix "lsp-test" lsp-test-source {};
94+
7895
implicit-hie-cradle = hself.callCabal2nix "implicit-hie-cradle"
7996
(builtins.fetchTarball {
8097
url = "https://hackage.haskell.org/package/implicit-hie-cradle-0.3.0.5/implicit-hie-cradle-0.3.0.5.tar.gz";

0 commit comments

Comments
 (0)