From 8d8074d500ebb27a8e74f63086e579f9c039b5a0 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 3 Jun 2022 15:49:49 +0200 Subject: [PATCH] nix: keep old hlint This keeps the pre-nixpkgs update hlint version, so we can defer addressing the warnings to a follow-up PR. --- default.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 52c9ea7055..e086158618 100644 --- a/default.nix +++ b/default.nix @@ -141,7 +141,23 @@ rec { # Linting and styling tools. style = - pkgs.callPackage nix/tools/style.nix { inherit hsie; }; + let + # keep old version of hlint to not deal with linter changes for now + nixpkgsVersionPrev = { + date = "2021-11-02"; + rev = "7053541084bf5ce2921ef307e5585d39d7ba8b3f"; + tarballHash = "1flhh5d4zy43x6060hvzjb5hi5cmc51ivc0nwmija9n8d35kcc4x"; + }; + + nixpkgsPrev = + builtins.fetchTarball { + url = "https://github.com/nixos/nixpkgs/archive/${nixpkgsVersionPrev.rev}.tar.gz"; + sha256 = nixpkgsVersionPrev.tarballHash; + }; + pkgsPrev = import nixpkgsPrev { }; + inherit (pkgsPrev) hlint; + in + pkgs.callPackage nix/tools/style.nix { inherit hlint hsie; }; # Scripts for running tests. tests =