src, nix: hlint update
This pulls in an updated hlint version from nixpkgs, and fixes some new eta-reduction warnings. (I don't particularly think this is more readable, but I suppose being consistently hlint-clean is worth it.)
This commit is contained in:
+1
-17
@@ -141,23 +141,7 @@ rec {
|
||||
|
||||
# Linting and styling tools.
|
||||
style =
|
||||
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; };
|
||||
pkgs.callPackage nix/tools/style.nix { inherit hsie; };
|
||||
|
||||
# Scripts for running tests.
|
||||
tests =
|
||||
|
||||
Reference in New Issue
Block a user