Obviate check-flake (#61)

This commit is contained in:
Sridhar Ratnakumar 2022-09-30 14:34:57 -04:00 committed by GitHub
parent d66e98108d
commit f6830f0d08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 19 deletions

View file

@ -20,9 +20,13 @@ jobs:
nix develop -j 4 -c echo
- name: Flake checks
run: |
# Because 'nix flake check' is not system-aware
# See https://srid.ca/haskell-template/checks
nix run nixpkgs#sd 'systems = nixpkgs.lib.systems.flakeExposed' 'systems = [ "x86_64-linux" ]' flake.nix
# Sandbox must be disabled due to HLS,
# https://github.com/haskell/haskell-language-server/issues/3128
nix --option sandbox false build .#check --no-link -L
nix --option sandbox false flake check -L
# TODO: Remove after https://github.com/srid/haskell-flake/issues/19
- name: Hlint
run: |

16
flake.lock generated
View file

@ -1,20 +1,5 @@
{
"nodes": {
"check-flake": {
"locked": {
"lastModified": 1662502605,
"narHash": "sha256-jAT55UhabAxLAVGanxjnNdzH2/oX2ZjLsL4i2jPIP+g=",
"owner": "srid",
"repo": "check-flake",
"rev": "48a17393ed4fcd523399d6602c283775b5127295",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "check-flake",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs": [
@ -68,7 +53,6 @@
},
"root": {
"inputs": {
"check-flake": "check-flake",
"flake-parts": "flake-parts",
"haskell-flake": "haskell-flake",
"nixpkgs": "nixpkgs",

View file

@ -6,7 +6,6 @@
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
haskell-flake.url = "github:srid/haskell-flake";
treefmt-flake.url = "github:srid/treefmt-flake";
check-flake.url = "github:srid/check-flake";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
@ -15,7 +14,6 @@
imports = [
inputs.haskell-flake.flakeModule
inputs.treefmt-flake.flakeModule
inputs.check-flake.flakeModule
];
perSystem = { self', config, pkgs, ... }: {
haskellProjects.default = {