-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts: pkgs/development/libraries/webkitgtk/default.nix pkgs/development/python-modules/pylast/default.nix pkgs/development/python-modules/pymavlink/default.nix
- Loading branch information
Showing
602 changed files
with
9,730 additions
and
6,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3481,9 +3481,9 @@ | |
githubId = 5493775; | ||
name = "Ente"; | ||
}; | ||
enzime = { | ||
Enzime = { | ||
email = "[email protected]"; | ||
github = "enzime"; | ||
github = "Enzime"; | ||
githubId = 10492681; | ||
name = "Michael Hoang"; | ||
}; | ||
|
@@ -6338,6 +6338,12 @@ | |
githubId = 15692230; | ||
name = "Muhammad Herdiansyah"; | ||
}; | ||
koozz = { | ||
email = "[email protected]"; | ||
github = "koozz"; | ||
githubId = 264372; | ||
name = "Jan van den Berg"; | ||
}; | ||
koral = { | ||
email = "[email protected]"; | ||
github = "k0ral"; | ||
|
@@ -9184,12 +9190,6 @@ | |
githubId = 301903; | ||
name = "Chip Collier"; | ||
}; | ||
phreedom = { | ||
email = "[email protected]"; | ||
github = "phreedom"; | ||
githubId = 62577; | ||
name = "Evgeny Egorochkin"; | ||
}; | ||
phryneas = { | ||
email = "[email protected]"; | ||
github = "phryneas"; | ||
|
@@ -9429,6 +9429,12 @@ | |
fingerprint = "48AD DE10 F27B AFB4 7BB0 CCAF 2D25 95A0 0D08 ACE0"; | ||
}]; | ||
}; | ||
ppom = { | ||
name = "Paco Pompeani"; | ||
email = "[email protected]"; | ||
github = "aopom"; | ||
githubId = 38916722; | ||
}; | ||
pradeepchhetri = { | ||
email = "[email protected]"; | ||
github = "pradeepchhetri"; | ||
|
@@ -13432,4 +13438,10 @@ | |
github = "jpagex"; | ||
githubId = 635768; | ||
}; | ||
pwoelfel = { | ||
name = "Philipp Woelfel"; | ||
email = "[email protected]"; | ||
github = "PhilippWoelfel"; | ||
githubId = 19400064; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
/* Nix expression to test for regressions in the Haskell configuration overlays. | ||
test-configurations.nix determines all attributes touched by given Haskell | ||
configuration overlays (i. e. pkgs/development/haskell-modules/configuration-*.nix) | ||
and builds all derivations (or at least a reasonable subset) affected by | ||
these overrides. | ||
By default, it checks `configuration-{common,nix,ghc-8.10.x}.nix`. You can | ||
invoke it like this: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix --keep-going | ||
It is possible to specify other configurations: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix \ | ||
--arg files '[ "configuration-ghc-9.0.x.nix" "configuration-ghc-9.2.x.nix" ]' \ | ||
--keep-going | ||
You can also just supply a single string: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix \ | ||
--argstr files "configuration-arm.nix" --keep-going | ||
You can even supply full paths which is handy, as it allows for tab-completing | ||
the configurations: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix \ | ||
--argstr files pkgs/development/haskell-modules/configuration-arm.nix \ | ||
--keep-going | ||
By default, derivation that fail to evaluate are skipped, unless they are | ||
“just” marked as broken. You can check for other eval errors like this: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix \ | ||
--arg skipEvalErrors false --keep-going | ||
You can also disable checking broken packages by passing a nixpkgs config: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix \ | ||
--arg config '{ allowBroken = false; }' --keep-going | ||
By default the haskell.packages.ghc*Binary sets used for bootstrapping GHC | ||
are _not_ tested. You can change this using: | ||
nix-build maintainers/scripts/haskell/test-configurations.nix \ | ||
--arg skipBinaryGHCs false --keep-going | ||
*/ | ||
{ files ? [ | ||
"configuration-common.nix" | ||
"configuration-nix.nix" | ||
"configuration-ghc-8.10.x.nix" | ||
] | ||
, nixpkgsPath ? ../../.. | ||
, config ? { allowBroken = true; } | ||
, skipEvalErrors ? true | ||
, skipBinaryGHCs ? true | ||
}: | ||
|
||
let | ||
pkgs = import nixpkgsPath { inherit config; }; | ||
inherit (pkgs) lib; | ||
|
||
# see usage explanation for the input format `files` allows | ||
files' = builtins.map builtins.baseNameOf ( | ||
if !builtins.isList files then [ files ] else files | ||
); | ||
|
||
setsForFile = fileName: | ||
let | ||
# extract the unique part of the config's file name | ||
configName = builtins.head ( | ||
builtins.match "configuration-(.+).nix" fileName | ||
); | ||
# match the major and minor version of the GHC the config is intended for, if any | ||
configVersion = lib.concatStrings ( | ||
builtins.match "ghc-([0-9]+).([0-9]+).x" configName | ||
); | ||
# return all package sets under haskell.packages matching the version components | ||
setsForVersion = builtins.map (name: pkgs.haskell.packages.${name}) ( | ||
builtins.filter (setName: | ||
lib.hasPrefix "ghc${configVersion}" setName | ||
&& (skipBinaryGHCs -> !(lib.hasInfix "Binary" setName)) | ||
) ( | ||
builtins.attrNames pkgs.haskell.packages | ||
) | ||
); | ||
|
||
defaultSets = [ pkgs.haskellPackages ]; | ||
in { | ||
# use plain haskellPackages for the version-agnostic files | ||
# TODO(@sternenseemann): also consider currently selected versioned sets | ||
"common" = defaultSets; | ||
"nix" = defaultSets; | ||
"arm" = defaultSets; | ||
"darwin" = defaultSets; | ||
}.${configName} or setsForVersion; | ||
|
||
# attribute set that has all the attributes of haskellPackages set to null | ||
availableHaskellPackages = builtins.listToAttrs ( | ||
builtins.map (attr: lib.nameValuePair attr null) ( | ||
builtins.attrNames pkgs.haskellPackages | ||
) | ||
); | ||
|
||
# evaluate a configuration and only return the attributes changed by it, | ||
# pass availableHaskellPackages as super in case intersectAttrs is used | ||
overriddenAttrs = fileName: builtins.attrNames ( | ||
lib.fix (self: | ||
import (nixpkgsPath + "/pkgs/development/haskell-modules/${fileName}") { | ||
haskellLib = pkgs.haskell.lib.compose; | ||
inherit pkgs; | ||
} self availableHaskellPackages | ||
) | ||
); | ||
|
||
# list of derivations that are affected by overrides in the given configuration | ||
# overlays. For common, nix, darwin etc. only the derivation from the default | ||
# package set will be emitted. | ||
packages = builtins.filter (v: | ||
lib.warnIf (v.meta.broken or false) "${v.pname} is marked as broken" ( | ||
v != null | ||
&& (skipEvalErrors -> (builtins.tryEval (v.outPath or v)).success) | ||
) | ||
) ( | ||
lib.concatMap (fileName: | ||
let | ||
sets = setsForFile fileName; | ||
attrs = overriddenAttrs fileName; | ||
in | ||
lib.concatMap (set: builtins.map (attr: set.${attr}) attrs) sets | ||
) files' | ||
); | ||
in | ||
|
||
packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.