Skip to content

Commit 85e26b5

Browse files
committed
Update tools in Nix shell
1 parent ed92af2 commit 85e26b5

File tree

5 files changed

+31
-30
lines changed

5 files changed

+31
-30
lines changed

cabal.project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ packages:
3030
tests: true
3131
benchmarks: true
3232

33+
multi-repl: True
34+
3335
import: ./asserts.cabal
3436

3537
-- We need to disable bitvec's SIMD for now, as it breaks during cross compilation.

flake.lock

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

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
url = "github:nix-community/flake-compat";
3232
flake = false;
3333
};
34+
hls = {
35+
url = "github:haskell/haskell-language-server/2.9.0.0";
36+
flake = false;
37+
};
3438
# for cabal-docspec
3539
cabal-extras = {
3640
url = "github:phadej/cabal-extras/cabal-docspec-0.0.0.20240414";

nix/shell.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ in
66
hsPkgs.shellFor {
77
nativeBuildInputs = [
88
pkgs.cabal
9-
pkgs.cabal-multi-repl
109
pkgs.cabal-docspec
1110
pkgs.fd
1211
pkgs.nixpkgs-fmt
@@ -24,7 +23,7 @@ hsPkgs.shellFor {
2423
# version as used in hsPkgs.
2524
tools = {
2625
haskell-language-server = {
27-
src = inputs.haskellNix.inputs."hls-2.8";
26+
src = inputs.hls;
2827
configureArgs = "--disable-benchmarks --disable-tests";
2928
};
3029
};

nix/tools.nix

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ inputs: final: prev:
22

33
let
44
inherit (final) lib;
5-
tool-index-state = "2024-05-31T00:00:00Z";
5+
tool-index-state = "2024-07-01T00:00:00Z";
66
tool = name: version: other:
77
final.haskell-nix.tool final.hsPkgs.args.compiler-nix-name name ({
88
version = version;
@@ -12,29 +12,7 @@ in
1212
{
1313
inherit tool-index-state;
1414

15-
cabal = tool "cabal" "latest" { };
16-
17-
cabal-multi-repl = (final.haskell-nix.cabalProject {
18-
# cabal master commit containing https://github.com/haskell/cabal/pull/8726
19-
src = final.fetchFromGitHub {
20-
owner = "haskell";
21-
repo = "cabal";
22-
rev = "adc283a0f06c7d24aeed67e69aca3d71c04010b3";
23-
hash = "sha256-3K9WVR/tINK3PyGlXpypSpp1pguHTnolDruHNE+VvE4=";
24-
};
25-
index-state = tool-index-state;
26-
inherit (final.hsPkgs.args) compiler-nix-name;
27-
cabalProject = ''
28-
packages: Cabal-syntax Cabal cabal-install-solver cabal-install
29-
'';
30-
configureArgs = "--disable-benchmarks --disable-tests";
31-
modules = [{
32-
packages.cabal-install.components.exes.cabal.postInstall = ''
33-
mv $out/bin/cabal $out/bin/cabal-multi-repl
34-
wrapProgram $out/bin/cabal-multi-repl --add-flags --enable-multi-repl
35-
'';
36-
}];
37-
}).cabal-install.components.exes.cabal;
15+
cabal = tool "cabal" "3.12.1.0" { };
3816

3917
cabal-docspec = tool "cabal-docspec" "git" {
4018
compiler-nix-name = "ghc98";
@@ -55,7 +33,7 @@ in
5533

5634
stylish-haskell = tool "stylish-haskell" "0.14.6.0" { };
5735

58-
cabal-gild = tool "cabal-gild" "1.3.1.2" { };
36+
cabal-gild = tool "cabal-gild" "1.5.0.0" { };
5937

6038
haskellBuildUtils = prev.haskellBuildUtils.override {
6139
inherit (final.hsPkgs.args) compiler-nix-name;

0 commit comments

Comments
 (0)