Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
H
head.hackage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
5
Merge Requests
5
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
head.hackage
Commits
2cbe081b
Commit
2cbe081b
authored
Jul 15, 2019
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nix: All all packages with patches to testedPackages
parent
76a70ef4
Pipeline
#8338
passed with stage
in 22 minutes and 56 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
scripts/build-all.nix
scripts/build-all.nix
+26
-5
No files found.
scripts/build-all.nix
View file @
2cbe081b
...
@@ -59,19 +59,38 @@ let
...
@@ -59,19 +59,38 @@ let
inputs
=
lib
.
concatLists
(
lib
.
filter
lib
.
isList
(
builtins
.
split
re
drv
));
inputs
=
lib
.
concatLists
(
lib
.
filter
lib
.
isList
(
builtins
.
split
re
drv
));
in
map
import
inputs
;
in
map
import
inputs
;
# All Haskell packages built with the HEAD compiler.
haskellPackages
=
nixpkgs
.
haskellPackages
;
# The packages which we are here to test
# The packages which we are here to test
testedPackages
=
with
nixpkgs
.
haskell
.
lib
;
with
nixpkgs
.
haskellPackages
;
{
testedPackages
=
with
nixpkgs
.
haskell
.
lib
;
with
haskellPackages
;
{
inherit
lens
aeson
criterion
scotty
;
inherit
lens
aeson
criterion
scotty
;
# servant: Don't distribute Sphinx documentation
# servant: Don't distribute Sphinx documentation
servant
=
overrideCabal
servant
{
postInstall
=
""
;
};
servant
=
overrideCabal
servant
{
postInstall
=
""
;
};
# singletons: Disable testsuite since it often breaks due to spurious
# singletons: Disable testsuite since it often breaks due to spurious
# TH-pretty-printing changes
# TH-pretty-printing changes
singletons
=
dontCheck
singletons
;
singletons
=
dontCheck
singletons
;
};
}
//
patchedPackages
;
# All of the packages which we have patches for.
patchedPackages
=
let
toPackageAttr
=
patchFile
:
_type
:
let
parts
=
builtins
.
match
"([a-zA-Z0-9-]+)-.*"
patchFile
;
pkgName
=
builtins
.
elemAt
parts
0
;
in
lib
.
nameValuePair
pkgName
haskellPackages
.
"
${
pkgName
}
"
;
brokenPackages
=
[
# vty isn't applied to its terminfo argument for some reason and I
# can't convinced vty.override to apply it.
"vty"
];
in
builtins
.
removeAttrs
(
lib
.
mapAttrs
'
toPackageAttr
(
builtins
.
readDir
../patches
))
brokenPackages
;
inherit
(
nixpkgs
)
lib
;
inherit
(
nixpkgs
)
lib
;
transHaskellDeps
=
drv
:
transHaskellDeps
=
drv
:
if
drv
==
null
then
[]
else
let
let
haskellDeps
=
drv
.
passthru
.
getBuildInputs
.
haskellBuildInputs
or
[];
haskellDeps
=
drv
.
passthru
.
getBuildInputs
.
haskellBuildInputs
or
[];
in
[{
in
[{
...
@@ -83,9 +102,10 @@ let
...
@@ -83,9 +102,10 @@ let
version
=
drv
.
passthru
.
version
;
version
=
drv
.
passthru
.
version
;
}]
++
lib
.
concatMap
transHaskellDeps
haskellDeps
;
}]
++
lib
.
concatMap
transHaskellDeps
haskellDeps
;
# Used by the summarize.py script to get a picture of the packages built during the run.
summary
=
{
summary
=
{
pkgs
=
lib
.
concatMap
transHaskellDeps
(
lib
.
attrValues
testedPackages
);
pkgs
=
lib
.
concatMap
transHaskellDeps
(
lib
.
attrValues
testedPackages
);
roots
=
map
(
drv
:
drv
.
name
)
(
lib
.
attrValues
testedPackages
);
roots
=
lib
.
concatMap
(
drv
:
if
drv
==
null
then
[]
else
[
drv
.
name
]
)
(
lib
.
attrValues
testedPackages
);
};
};
# Find Job ID of the given job name in the given pipeline
# Find Job ID of the given job name in the given pipeline
...
@@ -118,8 +138,9 @@ let
...
@@ -118,8 +138,9 @@ let
''
;
''
;
in
{
in
{
inherit
nixpkgs
ghc
testedPackages
buildDepends
;
inherit
testedPackages
patchedPackages
;
inherit
(
nixpkgs
)
haskellPackages
lib
;
inherit
nixpkgs
ghc
buildDepends
;
inherit
haskellPackages
;
testedPackageNames
=
nixpkgs
.
lib
.
attrNames
testedPackages
;
testedPackageNames
=
nixpkgs
.
lib
.
attrNames
testedPackages
;
inherit
summary
find-job
;
inherit
summary
find-job
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment