2021-05-01 17:00:40 +01:00
|
|
|
/*
|
|
|
|
To debug this expression you can use `hydra-eval-jobs` from
|
|
|
|
`pkgs.hydra-unstable` which prints the jobset description
|
|
|
|
to `stdout`:
|
|
|
|
|
|
|
|
$ hydra-eval-jobs -I . pkgs/top-level/release-haskell.nix
|
|
|
|
*/
|
|
|
|
{ supportedSystems ? [ "x86_64-linux" ] }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
releaseLib = import ./release-lib.nix {
|
|
|
|
inherit supportedSystems;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (releaseLib)
|
|
|
|
pkgs
|
|
|
|
packagePlatforms
|
|
|
|
mapTestOn
|
|
|
|
aggregate
|
|
|
|
;
|
|
|
|
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
|
|
|
|
# helper function which traverses a (nested) set
|
|
|
|
# of derivations produced by mapTestOn and flattens
|
|
|
|
# it to a list of derivations suitable to be passed
|
|
|
|
# to `releaseTools.aggregate` as constituents.
|
|
|
|
accumulateDerivations = jobList:
|
|
|
|
lib.concatMap (
|
|
|
|
attrs:
|
|
|
|
if lib.isDerivation attrs
|
|
|
|
then [ attrs ]
|
|
|
|
else if lib.isAttrs attrs
|
|
|
|
then accumulateDerivations (lib.attrValues attrs)
|
|
|
|
else []
|
|
|
|
) jobList;
|
|
|
|
|
|
|
|
# names of all subsets of `pkgs.haskell.packages`
|
|
|
|
compilerNames = lib.mapAttrs (name: _: name) pkgs.haskell.packages;
|
|
|
|
|
|
|
|
# list of all compilers to test specific packages on
|
|
|
|
all = with compilerNames; [
|
|
|
|
ghc884
|
|
|
|
ghc8104
|
|
|
|
ghc901
|
|
|
|
];
|
|
|
|
|
|
|
|
# packagePlatforms applied to `haskell.packages.*`
|
|
|
|
compilerPlatforms = lib.mapAttrs
|
|
|
|
(_: v: packagePlatforms v)
|
|
|
|
pkgs.haskell.packages;
|
|
|
|
|
|
|
|
# This function lets you specify specific packages
|
|
|
|
# which are to be tested on a list of specific GHC
|
|
|
|
# versions and returns a job set for all specified
|
|
|
|
# combinations. See `jobs` below for an example.
|
|
|
|
versionedCompilerJobs = config: mapTestOn {
|
|
|
|
haskell.packages =
|
|
|
|
(lib.mapAttrs (
|
|
|
|
ghc: jobs:
|
|
|
|
lib.filterAttrs (
|
|
|
|
jobName: platforms:
|
|
|
|
lib.elem ghc (config."${jobName}" or [])
|
|
|
|
) jobs
|
|
|
|
) compilerPlatforms);
|
|
|
|
};
|
|
|
|
|
|
|
|
# hydra jobs for `pkgs` of which we import a subset of
|
|
|
|
pkgsPlatforms = packagePlatforms pkgs // {
|
|
|
|
gitAndTools = packagePlatforms pkgs.gitAndTools;
|
|
|
|
};
|
|
|
|
|
2021-05-01 22:37:42 +01:00
|
|
|
# names of packages in an attribute set that are maintained
|
|
|
|
maintainedPkgNames = set: builtins.attrNames
|
|
|
|
(lib.filterAttrs (
|
|
|
|
_: v: builtins.length (v.meta.maintainers or []) > 0
|
|
|
|
) set);
|
|
|
|
|
2021-05-01 17:00:40 +01:00
|
|
|
jobs = mapTestOn {
|
|
|
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
|
|
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
|
|
|
|
|
|
|
tests.haskell = packagePlatforms pkgs.tests.haskell;
|
|
|
|
|
2021-05-04 10:33:42 +01:00
|
|
|
# top-level packages that depend on haskellPackages
|
2021-05-01 17:00:40 +01:00
|
|
|
inherit (pkgsPlatforms)
|
2021-05-04 10:33:42 +01:00
|
|
|
agda
|
2021-05-04 14:30:37 +01:00
|
|
|
arion
|
2021-05-01 17:00:40 +01:00
|
|
|
bench
|
2021-05-04 10:33:42 +01:00
|
|
|
bustle
|
|
|
|
blucontrol
|
2021-05-01 17:00:40 +01:00
|
|
|
cabal-install
|
|
|
|
cabal2nix
|
|
|
|
cachix
|
2021-05-04 14:30:37 +01:00
|
|
|
carp
|
2021-05-04 10:33:42 +01:00
|
|
|
cedille
|
2021-05-04 14:30:37 +01:00
|
|
|
client-ip-echo
|
2021-05-01 17:00:40 +01:00
|
|
|
darcs
|
2021-05-04 14:30:37 +01:00
|
|
|
dconf2nix
|
2021-05-01 17:00:40 +01:00
|
|
|
dhall
|
|
|
|
dhall-bash
|
|
|
|
dhall-docs
|
|
|
|
dhall-lsp-server
|
|
|
|
dhall-json
|
|
|
|
dhall-nix
|
|
|
|
dhall-text
|
2021-05-04 10:33:42 +01:00
|
|
|
diagrams-builder
|
2021-05-01 17:00:40 +01:00
|
|
|
elm2nix
|
|
|
|
fffuu
|
|
|
|
futhark
|
2021-05-04 10:33:42 +01:00
|
|
|
ghcid
|
|
|
|
git-brunch
|
|
|
|
gitit
|
2021-05-01 17:00:40 +01:00
|
|
|
glirc
|
|
|
|
hadolint
|
|
|
|
haskell-ci
|
|
|
|
haskell-language-server
|
|
|
|
hasura-graphql-engine
|
2021-05-04 14:30:37 +01:00
|
|
|
hci
|
|
|
|
hercules-ci-agent
|
2021-05-01 17:00:40 +01:00
|
|
|
hinit
|
2021-05-04 10:33:42 +01:00
|
|
|
hedgewars
|
2021-05-01 17:00:40 +01:00
|
|
|
hledger
|
|
|
|
hledger-iadd
|
|
|
|
hledger-interest
|
|
|
|
hledger-ui
|
|
|
|
hledger-web
|
|
|
|
hlint
|
|
|
|
hpack
|
2021-05-04 10:33:42 +01:00
|
|
|
hyper-haskell
|
|
|
|
hyper-haskell-server-with-packages
|
2021-05-01 17:00:40 +01:00
|
|
|
icepeak
|
2021-05-04 10:33:42 +01:00
|
|
|
idris
|
|
|
|
ihaskell
|
|
|
|
jl
|
2021-05-01 17:00:40 +01:00
|
|
|
koka
|
|
|
|
krank
|
2021-05-04 14:30:37 +01:00
|
|
|
lambdabot
|
|
|
|
ldgallery
|
2021-05-01 17:00:40 +01:00
|
|
|
madlang
|
|
|
|
matterhorn
|
2021-05-04 14:30:37 +01:00
|
|
|
mueval
|
2021-05-01 17:00:40 +01:00
|
|
|
neuron-notes
|
|
|
|
niv
|
|
|
|
nix-delegate
|
|
|
|
nix-deploy
|
|
|
|
nix-diff
|
|
|
|
nix-linter
|
|
|
|
nix-output-monitor
|
2021-05-04 14:30:37 +01:00
|
|
|
nix-script
|
2021-05-01 17:00:40 +01:00
|
|
|
nix-tree
|
|
|
|
nixfmt
|
2021-05-04 10:33:42 +01:00
|
|
|
nota
|
|
|
|
ormolu
|
2021-05-01 17:00:40 +01:00
|
|
|
pandoc
|
2021-05-04 14:30:37 +01:00
|
|
|
pakcs
|
2021-05-04 10:33:42 +01:00
|
|
|
petrinizer
|
2021-05-01 17:00:40 +01:00
|
|
|
place-cursor-at
|
2021-05-04 10:33:42 +01:00
|
|
|
pinboard-notes-backup
|
2021-05-04 14:30:37 +01:00
|
|
|
pretty-simple
|
2021-05-01 17:00:40 +01:00
|
|
|
shake
|
|
|
|
shellcheck
|
2021-05-04 10:33:42 +01:00
|
|
|
sourceAndTags
|
2021-05-01 17:00:40 +01:00
|
|
|
spacecookie
|
2021-05-04 14:30:37 +01:00
|
|
|
spago
|
2021-05-01 17:00:40 +01:00
|
|
|
splot
|
|
|
|
stack
|
|
|
|
stack2nix
|
|
|
|
stutter
|
|
|
|
stylish-haskell
|
2021-05-04 10:33:42 +01:00
|
|
|
taffybar
|
|
|
|
tamarin-prover
|
2021-05-01 17:00:40 +01:00
|
|
|
taskell
|
2021-05-04 10:33:42 +01:00
|
|
|
termonad-with-packages
|
|
|
|
tldr-hs
|
2021-05-01 17:00:40 +01:00
|
|
|
tweet-hs
|
|
|
|
update-nix-fetchgit
|
2021-05-04 14:30:37 +01:00
|
|
|
uqm
|
2021-05-01 17:00:40 +01:00
|
|
|
uuagc
|
2021-05-04 10:33:42 +01:00
|
|
|
vaultenv
|
2021-05-01 17:00:40 +01:00
|
|
|
wstunnel
|
2021-05-04 10:33:42 +01:00
|
|
|
xmobar
|
|
|
|
xmonad-with-packages
|
2021-05-04 14:30:37 +01:00
|
|
|
yi
|
|
|
|
zsh-git-prompt
|
2021-05-01 17:00:40 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
gitAndTools.git-annex = pkgsPlatforms.gitAndTools.git-annex;
|
2021-05-04 14:30:37 +01:00
|
|
|
elmPackages.elm = pkgsPlatforms.elmPackages.elm;
|
2021-05-01 17:00:40 +01:00
|
|
|
} // versionedCompilerJobs {
|
|
|
|
# Packages which should be checked on more than the
|
|
|
|
# default GHC version. This list can be used to test
|
|
|
|
# the state of the package set with newer compilers
|
|
|
|
# and to confirm that critical packages for the
|
|
|
|
# package sets (like Cabal, jailbreak-cabal) are
|
|
|
|
# working as expected.
|
|
|
|
cabal-install = all;
|
|
|
|
Cabal_3_4_0_0 = with compilerNames; [ ghc884 ghc8104 ];
|
|
|
|
funcmp = all;
|
|
|
|
haskell-language-server = all;
|
|
|
|
hoogle = all;
|
|
|
|
hsdns = all;
|
|
|
|
jailbreak-cabal = all;
|
|
|
|
language-nix = all;
|
|
|
|
nix-paths = all;
|
|
|
|
titlecase = all;
|
|
|
|
} // {
|
|
|
|
mergeable = pkgs.releaseTools.aggregate {
|
|
|
|
name = "haskell-updates-mergeable";
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
Critical haskell packages that should work at all times,
|
|
|
|
serves as minimum requirement for an update merge
|
|
|
|
'';
|
|
|
|
maintainers = lib.teams.haskell.members;
|
|
|
|
};
|
|
|
|
constituents = accumulateDerivations [
|
|
|
|
# haskell specific tests
|
|
|
|
jobs.tests.haskell
|
|
|
|
# important top-level packages
|
|
|
|
jobs.cabal-install
|
|
|
|
jobs.cabal2nix
|
|
|
|
jobs.cachix
|
|
|
|
jobs.darcs
|
|
|
|
jobs.haskell-language-server
|
|
|
|
jobs.hledger
|
|
|
|
jobs.hledger-ui
|
|
|
|
jobs.hpack
|
|
|
|
jobs.niv
|
|
|
|
jobs.pandoc
|
|
|
|
jobs.stack
|
|
|
|
jobs.stylish-haskell
|
|
|
|
# important haskell (library) packages
|
|
|
|
jobs.haskellPackages.cabal-plan
|
|
|
|
jobs.haskellPackages.distribution-nixpkgs
|
|
|
|
jobs.haskellPackages.hackage-db
|
|
|
|
jobs.haskellPackages.policeman
|
|
|
|
jobs.haskellPackages.xmonad
|
|
|
|
jobs.haskellPackages.xmonad-contrib
|
|
|
|
# haskell packages maintained by @peti
|
|
|
|
# imported from the old hydra jobset
|
|
|
|
jobs.haskellPackages.hopenssl
|
|
|
|
jobs.haskellPackages.hsemail
|
|
|
|
jobs.haskellPackages.hsyslog
|
|
|
|
];
|
|
|
|
};
|
2021-05-01 22:37:42 +01:00
|
|
|
maintained = pkgs.releaseTools.aggregate {
|
|
|
|
name = "maintained-haskell-packages";
|
|
|
|
meta = {
|
|
|
|
description = "Aggregate jobset of all haskell packages with a maintainer";
|
|
|
|
maintainers = lib.teams.haskell.members;
|
|
|
|
};
|
|
|
|
constituents = accumulateDerivations
|
|
|
|
(builtins.map
|
|
|
|
(name: jobs.haskellPackages."${name}")
|
|
|
|
(maintainedPkgNames pkgs.haskellPackages));
|
|
|
|
};
|
2021-05-01 17:00:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in jobs
|