flake.nix: add hydraJobs against all ghc versions
This commit is contained in:
parent
75b3d7ca98
commit
a11f1f4e2f
1 changed files with 21 additions and 1 deletions
22
flake.nix
22
flake.nix
|
@ -5,7 +5,7 @@
|
||||||
let
|
let
|
||||||
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
|
||||||
forSystems = nixpkgs.lib.genAttrs systems;
|
forSystems = nixpkgs.lib.genAttrs systems;
|
||||||
in {
|
in rec {
|
||||||
packages = forSystems (system: {
|
packages = forSystems (system: {
|
||||||
yammat = nixpkgs.legacyPackages.${system}.haskellPackages.callPackage ./pkg.nix {};
|
yammat = nixpkgs.legacyPackages.${system}.haskellPackages.callPackage ./pkg.nix {};
|
||||||
});
|
});
|
||||||
|
@ -14,6 +14,26 @@
|
||||||
self.packages.${system}.yammat
|
self.packages.${system}.yammat
|
||||||
);
|
);
|
||||||
|
|
||||||
|
checks = packages;
|
||||||
|
|
||||||
|
hydraJobs = forSystems (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
ghcVersions =
|
||||||
|
builtins.filter (p:
|
||||||
|
builtins.match "ghc.+" p != null
|
||||||
|
) (builtins.attrNames pkgs.haskell.packages);
|
||||||
|
in
|
||||||
|
builtins.foldl' (checks: ghcVersion:
|
||||||
|
let
|
||||||
|
haskellPackages = pkgs.haskell.packages.${ghcVersion};
|
||||||
|
in
|
||||||
|
checks // {
|
||||||
|
"yammat-${ghcVersion}" = haskellPackages.callPackage ./pkg.nix {};
|
||||||
|
}
|
||||||
|
) {} ghcVersions
|
||||||
|
);
|
||||||
|
|
||||||
devShell = forSystems (system:
|
devShell = forSystems (system:
|
||||||
import ./shell.nix {
|
import ./shell.nix {
|
||||||
nixpkgs = nixpkgs.legacyPackages.${system};
|
nixpkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
|
Loading…
Reference in a new issue