-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose finalPackages
#68
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b820aef
Expose finalPackages
roberth c85013c
Check docs
roberth c93938e
Add docs.sh script
roberth e581f40
runtest.sh: Only show log when failed
roberth 7729db0
Turn haskell-project.nix into a module
roberth a44c282
flake-module.nix: Refactor, move to create single perSystem module
roberth 0f3e97b
runtest.sh: Actually print newlines
roberth 7f4c35e
Keep all project config in haskell-project.nix
srid ab3e200
Merge pull request #71 from srid/expose-finalPackages--srid
roberth 421b7f9
Make runtest.sh work on macOS
srid f14492f
refactor: function args are unused here
srid c66cd64
Add a note to CI
srid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Renders the docs, prints the location of the docs, opens the docs if possible | ||
# | ||
# Does not run the link checker. That's done in runtest.sh. | ||
|
||
nix --option sandbox false \ | ||
build --override-input haskell-flake path:${FLAKE} \ | ||
-L --show-trace \ | ||
github:hercules-ci/flake.parts-website \ | ||
"$@" | ||
|
||
echo "Docs rendered to $PWD/result/options/haskell-flake.html" | ||
|
||
# Works on linux | ||
if type xdg-open &>/dev/null; then | ||
xdg-open result/options/haskell-flake.html | ||
fi |
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 |
---|---|---|
@@ -1,18 +1,35 @@ | ||
set -e | ||
|
||
if [ "$(uname)" == "Darwin" ]; then | ||
SYSTEM=aarch64-darwin | ||
function logHeader { | ||
echo "\n||| $@" | ||
} | ||
else | ||
SYSTEM=x86_64-linux | ||
function logHeader { | ||
echo -e "\n||| $@" | ||
} | ||
fi | ||
|
||
FLAKE=$(pwd) | ||
cd ./test | ||
|
||
# First, build the flake. | ||
echo "\n||| Testing nix build" | ||
logHeader "Testing nix build" | ||
nix build --override-input haskell-flake path:${FLAKE} | ||
# Run the devshell test script in a nix develop shell. | ||
echo "\n||| Testing nix devshell" | ||
logHeader "Testing nix devshell" | ||
nix develop --override-input haskell-flake path:${FLAKE} -c ./test.sh | ||
# Test non-devshell features: | ||
# Checks | ||
echo "\n||| Testing nix flake checks" | ||
logHeader "Testing nix flake checks" | ||
nix --option sandbox false \ | ||
build --override-input haskell-flake path:${FLAKE} -L .#check | ||
|
||
echo "\n||| All tests passed!" | ||
logHeader "Testing docs" | ||
nix build --override-input haskell-flake path:${FLAKE} \ | ||
--option log-lines 1000 --show-trace \ | ||
github:hercules-ci/flake.parts-website#checks.${SYSTEM}.linkcheck | ||
|
||
logHeader "All tests passed!" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like
readonly
has no effect, because I can still setfinalPackages.foo = ./.;
(evenfinalPackages = ./.;
) intest/flake.nix
?Or does it just silently ignore user values?