-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example output: https://dpaste.com/FWAYRXSVM Several TODO's left, but perhaps functional enough to merge? Towards #9
- Loading branch information
1 parent
e3f01d2
commit 1646715
Showing
9 changed files
with
386 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
REPORT=$1 | ||
export HASH_COLLECTION_SERVER=http://localhost:8000 | ||
|
||
if [ "x" == "x$REPORT" ]; then | ||
echo "Usage: $0 <report-name>" | ||
exit 1 | ||
fi | ||
|
||
while true; do | ||
curl -H "Authorization: Bearer $HASH_COLLECTION_TOKEN" $HASH_COLLECTION_SERVER/reports/$REPORT/suggested | jq .[] | head -50 | tr -d \" | while read out | ||
do | ||
echo $out | ||
# TODO some/most of these can probably also be taken found in the | ||
# local cache (with a cache.nixos.org signature), so perhaps take them from there? | ||
copy-from-cache $out | ||
done | ||
done |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
REPORT=$1 | ||
|
||
if [ "x" == "x$REPORT" ]; then | ||
echo "Usage: $0 <report-name>" | ||
exit 1 | ||
fi | ||
|
||
while true; do | ||
curl -H "Authorization: Bearer $HASH_COLLECTION_TOKEN" http://localhost:8000/reports/$REPORT/suggested | jq .[] | head | tr -d \" | while read out | ||
do | ||
(nix derivation show $out || exit 1) | jq keys.[] | tr -d \" | while read drv | ||
do | ||
# TODO select the right output to rebuild? | ||
nix-build $drv --check | ||
done | ||
done | ||
done |
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.