Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gbs-downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
PrivateStorage
gbs-downloader
Commits
7be69ea0
Commit
7be69ea0
authored
2 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Get zlib onto PKG_CONFIG_PATH for the cabal-test flake app
parent
388e44b6
No related branches found
No related tags found
1 merge request
!1
Simplistic implementation of download
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
flake.nix
+12
-2
12 additions, 2 deletions
flake.nix
with
12 additions
and
2 deletions
flake.nix
+
12
−
2
View file @
7be69ea0
...
@@ -49,11 +49,21 @@
...
@@ -49,11 +49,21 @@
program
=
"
${
program
=
"
${
pkgs
.
writeShellApplication
{
pkgs
.
writeShellApplication
{
name
=
"cabal-build-and-test"
;
name
=
"cabal-build-and-test"
;
runtimeInputs
=
with
pkgs
;
[
pkg-config
haskell
.
compiler
.
${
ghcVersion
}
cabal-install
zlib
];
# Only put packages with things that need to be on PATH here
# because that's all t hat runtimeInputs buys us. Packages with
# different requirements need to be handled differently.
runtimeInputs
=
with
pkgs
;
[
pkg-config
haskell
.
compiler
.
${
ghcVersion
}
cabal-install
];
text
=
''
text
=
''
# Here we make zlib discoverable by pkg-config so cabal can find
# headers and stuff.
export PKG_CONFIG_PATH=
${
pkgs
.
lib
.
makeSearchPath
"lib/pkgconfig"
[
pkgs
.
zlib
.
dev
]
}
cabal update hackage.haskell.org
cabal update hackage.haskell.org
cabal build --enable-tests
cabal run gbs-downloader-test
cabal run gbs-downloader-test
''
;
''
;
}
}
...
...
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