diff --git a/npins/sources.json b/npins/sources.json index caf47d4..534ffd6 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -90,21 +90,6 @@ "url": "https://api.github.com/repos/FAForever/uid/tarball/v4.0.6", "hash": "04wv34zwi4x08ss4pq1l3bf0rr8chg3bbia7k0yz3g4nwnrffmzg" }, - "osu": { - "type": "GitRelease", - "repository": { - "type": "GitHub", - "owner": "ppy", - "repo": "osu" - }, - "pre_releases": false, - "version_upper_bound": null, - "release_prefix": null, - "version": "2024.1122.0", - "revision": "6a0ac4c29eca22bdfe134cdd5e51395bbd6e1d49", - "url": "https://api.github.com/repos/ppy/osu/tarball/2024.1122.0", - "hash": "1hyap9rby199lgrz2a81lhdkkpa3hp0qjhsvw2j3br7qkcfabs6d" - }, "proton-osu": { "type": "GitRelease", "repository": { diff --git a/pkgs/default.nix b/pkgs/default.nix index f00ef5f..d0b4634 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -57,7 +57,6 @@ osu-mime = pkgs.callPackage ./osu-mime {}; osu-lazer-bin = pkgs.callPackage ./osu-lazer-bin { - inherit pins; inherit (config.packages) osu-mime; }; diff --git a/pkgs/osu-lazer-bin/default.nix b/pkgs/osu-lazer-bin/default.nix index d66adc0..24a1648 100644 --- a/pkgs/osu-lazer-bin/default.nix +++ b/pkgs/osu-lazer-bin/default.nix @@ -1,6 +1,5 @@ { lib, - pins, SDL2, alsa-lib, appimageTools, @@ -28,7 +27,7 @@ osu-mime, }: let pname = "osu-lazer-bin"; - inherit (pins.osu) version; + inherit (builtins.fromJSON (builtins.readFile ./info.json)) version; appimageBin = fetchurl { url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage"; diff --git a/pkgs/osu-lazer-bin/update.sh b/pkgs/osu-lazer-bin/update.sh index 8402b49..fab1c07 100755 --- a/pkgs/osu-lazer-bin/update.sh +++ b/pkgs/osu-lazer-bin/update.sh @@ -1,7 +1,7 @@ -#!/usr/bin/env -S nix shell nixpkgs#jq -c bash +#!/usr/bin/env -S nix shell nixpkgs#curl nixpkgs#jq -c bash info="pkgs/osu-lazer-bin/info.json" -version=$(jq -r '.pins.osu.version' npins/sources.json) +version=$(curl -s "https://api.github.com/repos/ppy/osu/releases/latest" | jq -r '.tag_name') oldversion=$(jq -r '.version' "$info") url="https://github.com/ppy/osu/releases/download/${version}/osu.AppImage"