From f404a2920724376dd0533acb44219788aa4fdc86 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Wed, 18 Jan 2023 11:40:14 +0100 Subject: [PATCH] fix index-state and version of tools to avoid rebuilds and compile errors --- nix/pkgs.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/nix/pkgs.nix b/nix/pkgs.nix index d8fb33173f6..0a5eb75b507 100644 --- a/nix/pkgs.nix +++ b/nix/pkgs.nix @@ -9,29 +9,26 @@ final: prev: with final; { cardanoNodeProject.hsPkgs)) (name: lib.attrNames cardanoNodeProject.pkg-set.options.packages.value.${name}.components.exes); - cabal = haskell-nix.tool compiler-nix-name "cabal" { - version = "latest"; - inherit (cardanoNodeProject) index-state; - }; + cabal = haskell-nix.cabal-install.${compiler-nix-name}; hlint = haskell-nix.tool compiler-nix-name "hlint" { version = "3.2.7"; - inherit (cardanoNodeProject) index-state; + index-state = "2022-09-27T00:00:00Z"; }; ghcid = haskell-nix.tool compiler-nix-name "ghcid" { version = "0.8.7"; - inherit (cardanoNodeProject) index-state; + index-state = "2022-09-27T00:00:00Z"; }; haskell-language-server = haskell-nix.tool compiler-nix-name "haskell-language-server" { - version = "latest"; - inherit (cardanoNodeProject) index-state; + version = "1.8.0.0"; + index-state = "2022-09-27T00:00:00Z"; }; haskellBuildUtils = prev.haskellBuildUtils.override { inherit compiler-nix-name; - inherit (cardanoNodeProject) index-state; + index-state = "2022-09-27T00:00:00Z"; }; cardanolib-py = callPackage ./cardanolib-py { };