mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
osu-lazer{,-bin}: move to pkgs/by-name
This commit is contained in:
parent
29d2df8e1a
commit
fd53ec0b2a
@ -51,7 +51,7 @@ let
|
||||
];
|
||||
};
|
||||
|
||||
passthru.updateScript = ./update-bin.sh;
|
||||
passthru.updateScript = ./update.sh;
|
||||
in
|
||||
if stdenv.hostPlatform.isDarwin then
|
||||
stdenv.mkDerivation {
|
@ -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"
|
@ -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"
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user