forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
olympus: make wrappers properly, use standard build process, misc fixes
* olympus: update version, src; add updateScript * olympus: avoid rec; use lib.getExe; remove redundant .out; minor changes * olympus: use standard build process for dotnet; remove -nixos suffix in version; use new mono; add dotnet-runtime to fhs env * olympus: 24.10.27.02 -> 24.11.23.01; fix version.txt; remove unnecessary dependencies; add miniinstaller and celeste wrapper; other misc change olympus-with-steam-run: init * olympus: more flexible celeste wrapper * olympus: accept emptry string and path as celeste wrapper; minor fix with lua cpath * olympus: minor fix with lua cpath; add xdg-utils to path
- Loading branch information
Showing
4 changed files
with
152 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
steam-run, | ||
callPackage, | ||
}: | ||
|
||
callPackage ../olympus/package.nix { celesteWrapper = steam-run; } |
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
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,33 @@ | ||
#!/usr/bin/env nix-shell | ||
#!nix-shell -i bash -p curl jq common-updater-scripts nixfmt-rfc-style | ||
|
||
set -eu -o pipefail | ||
|
||
attr=olympus | ||
nix_file=$(nix-instantiate --eval --strict -A "$attr.meta.position" | sed -re 's/^"(.*):[0-9]+"$/\1/') | ||
|
||
api() { | ||
curl -s "https://dev.azure.com/EverestAPI/Olympus/_apis/$1?api-version=7.1" | ||
} | ||
|
||
pipeline_id=$(api pipelines | jq -r ' | ||
.value | ||
| map(select(.name == "EverestAPI.Olympus")) | ||
| .[0].id | ||
') | ||
|
||
run_id=$(api pipelines/$pipeline_id/runs | jq -r ' | ||
.value | ||
| map(select(.result == "succeeded")) | ||
| max_by(.finishedDate) | ||
| .id | ||
') | ||
sed -i 's|buildId\s*=\s*".*";|buildId = "'$run_id'";|' $nix_file | ||
|
||
run=$(api pipelines/$pipeline_id/runs/$run_id) | ||
commit=$(echo "$run" | jq -r '.resources.repositories.self.version') | ||
version=$(echo "$run" | jq -r '.name') | ||
update-source-version $attr $version --rev=$commit | ||
|
||
"$(nix-build --attr $attr.fetch-deps --no-out-link)" | ||
nixfmt $(dirname $nix_file)/deps.nix # NixOS/nixpkgs#358025 |