Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ellie Hermaszewska
head.hackage
Commits
ebb6a19b
Commit
ebb6a19b
authored
5 years ago
by
Ben Gamari
Committed by
Ben Gamari
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
run-ci: Fix cabal workflow
This should fix
#11
.
parent
4b4c65ff
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci/cabal.project
+5
-0
5 additions, 0 deletions
ci/cabal.project
ci/default.nix
+1
-0
1 addition, 0 deletions
ci/default.nix
run-ci
+20
-4
20 additions, 4 deletions
run-ci
with
26 additions
and
4 deletions
ci/cabal.project
+
5
−
0
View file @
ebb6a19b
packages: .
source-repository-package
type: git
location: https://github.com/bgamari/hackage-overlay-repo-tool
tag: 18eb61c830ad908d36d343f400a1588af6b9a03a
This diff is collapsed.
Click to expand it.
ci/default.nix
+
1
−
0
View file @
ebb6a19b
...
...
@@ -35,6 +35,7 @@ let
bash
curl
gnutar
findutils
patch
rsync
openssl
cabal-install
ghc
gcc
binutils-unwrapped
pwgen
gnused
hackage-repo-tool
overlay-tool
python3
git
# cabal-install wants this to fetch source-repository-packages
];
in
runCommand
"repo"
{
...
...
This diff is collapsed.
Click to expand it.
run-ci
+
20
−
4
View file @
ebb6a19b
...
...
@@ -26,17 +26,33 @@ if [ -n "$EXTRA_HC_OPTS" ]; then
fi
mkdir
-p
run
cd
run
echo
""
>
deps.cabal.project
echo
""
>
run/
deps.cabal.project
if
[
-n
"
$USE_NIX
"
]
;
then
# Generate native library dependency mapping
nix
eval
--raw
-f
.
./. cabalDepsSrc
>>
deps.cabal.project
nix
eval
--raw
-f
./. cabalDepsSrc
>>
run/
deps.cabal.project
run
=
"nix run -f ../. -c head-hackage-ci"
else
run
=
"cabal new-run head-hackage-ci --"
run
=
"head-hackage-ci"
# Sigh, this is an abysmal hack
bindir
=
$(
realpath
.
)
/run/bin
mkdir
-p
$bindir
PATH
=
$bindir
:
$PATH
cp
build-repo.sh
$bindir
/build-repo.sh
if
!
which tool
;
then
echo
"Installing hackage-overlay-repo-tool..."
cabal new-install tool
--installdir
=
$bindir
fi
if
!
which hackage-repo-tool
;
then
echo
"Installing hackage-repo-tool..."
cabal new-install hackage-repo-tool
--installdir
=
$bindir
fi
cabal new-install head-hackage-ci
--installdir
=
$bindir
fi
cd
run
rm
-f
cabal.project
set
-x
$run
\
test-patches
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment