osu-lazer{,-bin}: move to pkgs/by-name

This commit is contained in:
Gutyina Gergő 2024-10-09 11:53:05 +02:00
parent 29d2df8e1a
commit fd53ec0b2a
No known key found for this signature in database
7 changed files with 6 additions and 10 deletions

View File

@ -51,7 +51,7 @@ let
];
};
passthru.updateScript = ./update-bin.sh;
passthru.updateScript = ./update.sh;
in
if stdenv.hostPlatform.isDarwin then
stdenv.mkDerivation {

View File

@ -3,16 +3,16 @@
set -eo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
bin_file="$(realpath ./bin.nix)"
bin_file="$(realpath ./package.nix)"
new_version="$(curl -s "https://api.github.com/repos/ppy/osu/releases?per_page=1" | jq -r '.[0].name')"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./bin.nix)"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./package.nix)"
if [[ "$new_version" == "$old_version" ]]; then
echo "Already up to date."
exit 0
fi
cd ../../..
cd ../../../..
echo "Updating osu-lazer-bin from $old_version to $new_version..."
sed -Ei.bak '/ *version = "/s/".+"/"'"$new_version"'"/' "$bin_file"

View File

@ -4,13 +4,13 @@ set -eo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
new_version="$(curl -s "https://api.github.com/repos/ppy/osu/releases?per_page=1" | jq -r '.[0].name')"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./package.nix)"
if [[ "$new_version" == "$old_version" ]]; then
echo "Up to date"
exit 0
fi
cd ../../..
cd ../../../..
if [[ "$1" != "--deps-only" ]]; then
update-source-version osu-lazer "$new_version"

View File

@ -34458,10 +34458,6 @@ with pkgs;
opensearch = callPackage ../servers/search/opensearch { };
osu-lazer = callPackage ../games/osu-lazer { };
osu-lazer-bin = callPackage ../games/osu-lazer/bin.nix { };
pro-office-calculator = libsForQt5.callPackage ../games/pro-office-calculator { };
qgo = libsForQt5.callPackage ../games/qgo { };