[INT-159] Add hpack check (#20)

Problem: We want to be able to check if cabal file is up to date.

Solution: Add hpack check.
This commit is contained in:
Sereja313 2023-04-06 14:27:14 +03:00 committed by GitHub
parent d1dc7d55b1
commit ddd1785a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -30,6 +30,10 @@ jobs:
run: nix build -L .#checks.x86_64-linux.trailing-whitespace
if: success() || failure()
- name: check-hpack
run: nix build -L .#checks.x86_64-linux.hpack
if: success() || failure()
# Export JSON serialized ghc-versions
ghc-versions:
runs-on: [self-hosted, nix]

View File

@ -994,11 +994,11 @@
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1678780648,
"narHash": "sha256-+BggREMl3p2J1lSzqFKFo+NStpmIqODBGXtolfhu6w8=",
"lastModified": 1679645506,
"narHash": "sha256-6hGH98lt8Q/0eEwNVBVJrOu4/hDstMXFDOM04GJy40M=",
"owner": "serokell",
"repo": "serokell.nix",
"rev": "d97df9f2783e284ddcc43203247e571ad11065f7",
"rev": "c4ac9aee348e2325e0a3abdee381e86820ec116b",
"type": "github"
},
"original": {

View File

@ -92,6 +92,10 @@
# nixpkgs revision pinned by this flake
legacyPackages = pkgs;
devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.hpack ];
};
# used to dynamically build a matrix in the GitHub pipeline
ghc-matrix = {
include = map (ver: { ghc = ver; }) ghc-versions;
@ -105,6 +109,8 @@
hlint = pkgs.build.haskell.hlint ./.;
stylish-haskell = pkgs.build.haskell.stylish-haskell ./.;
hpack = pkgs.build.haskell.hpack ./.;
};
});
}