From 916b9023d81e051f4989a13a8edcd7560ee4d337 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Wed, 27 Apr 2022 18:35:24 -0400 Subject: [PATCH] Remove the HLS check; it never worked --- flake.nix | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/flake.nix b/flake.nix index 6314df8..35ab2f5 100644 --- a/flake.nix +++ b/flake.nix @@ -61,12 +61,6 @@ }; }; - # Checks the shell script using ShellCheck - checkedShellScript = name: text: - (pkgs.writeShellApplication { - inherit name text; - }) + "/bin/${name}"; - in { # Used by `nix build` & `nix run` (prod exe) @@ -83,26 +77,6 @@ format = inputs.lint-utils.mkApp.${system} lintSpec; }; - # Used by `nix flake check` (but see next attribute) - checks = - inputs.lint-utils.mkChecks.${system} lintSpec ./. - // { - hls = checkedShellScript "hls" "${hp.haskell-language-server}/bin/haskell-language-server"; - }; - - # We need this hack because `nix flake check` won't work for Haskell - # projects: https://nixos.wiki/wiki/Import_From_Derivation#IFD_and_Haskell - # - # Instead, run: `nix build .#check.x86_64-linux` (replace with your system) - check = - pkgs.runCommand "combined-checks" - { - checksss = builtins.attrValues self.checks.${system}; - } '' - echo $checksss - touch $out - ''; - }) // { # For hercules-CI support, # https://docs.hercules-ci.com/hercules-ci/guides/upgrade-to-agent-0.9/#_upgrade_your_repositories