Loading pkgs/games/osu-lazer/bin.nix +76 −53 Original line number Diff line number Diff line { lib , stdenv , fetchurl , fetchzip , appimageTools , makeWrapper { lib, stdenv, fetchurl, fetchzip, appimageTools, makeWrapper, }: let pname = "osu-lazer-bin"; version = "2024.906.2"; src = { src = { aarch64-darwin = fetchzip { url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Apple.Silicon.zip"; hash = "sha256-KyvC8gEqZvXMATxS2513X0WdlR7nF8tHS4R/TPFrHao="; Loading @@ -25,7 +27,8 @@ let url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage"; hash = "sha256-zQnR3KwlE1gTWH8f+GDRBsc7Whfn9XpT1D/NLg5TtrU="; }; }.${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported."); } .${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported."); meta = { description = "Rhythm is just a *click* away (AppImage version for score submission and multiplayer, and binary distribution for Darwin systems)"; Loading @@ -36,16 +39,29 @@ let unfreeRedistributable # osu-framework contains libbass.so in repository ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; maintainers = with lib.maintainers; [ gepbird stepbrobd ]; maintainers = with lib.maintainers; [ gepbird stepbrobd ]; mainProgram = "osu!"; platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; }; passthru.updateScript = ./update-bin.sh; in if stdenv.hostPlatform.isDarwin then stdenv.mkDerivation { inherit pname version src meta passthru; if stdenv.hostPlatform.isDarwin then stdenv.mkDerivation { inherit pname version src meta passthru ; installPhase = '' runHook preInstall Loading @@ -55,8 +71,15 @@ then stdenv.mkDerivation { runHook postInstall ''; } else appimageTools.wrapType2 { inherit pname version src meta passthru; else appimageTools.wrapType2 { inherit pname version src meta passthru ; extraPkgs = pkgs: with pkgs; [ icu ]; Loading pkgs/games/osu-lazer/default.nix +32 −26 Original line number Diff line number Diff line { lib , stdenvNoCC , buildDotnetModule , fetchFromGitHub , dotnetCorePackages , makeDesktopItem , copyDesktopItems , makeWrapper , ffmpeg , alsa-lib , SDL2 , lttng-ust , numactl , libglvnd , xorg , udev { lib, stdenvNoCC, buildDotnetModule, fetchFromGitHub, dotnetCorePackages, makeDesktopItem, copyDesktopItems, makeWrapper, ffmpeg, alsa-lib, SDL2, lttng-ust, numactl, libglvnd, xorg, udev, }: buildDotnetModule rec { Loading Loading @@ -76,7 +77,8 @@ buildDotnetModule rec { runHook postFixup ''; desktopItems = [(makeDesktopItem { desktopItems = [ (makeDesktopItem { desktopName = "osu!"; name = "osu"; exec = "osu!"; Loading @@ -84,7 +86,8 @@ buildDotnetModule rec { comment = "Rhythm is just a *click* away (no score submission or multiplayer, see osu-lazer-bin)"; type = "Application"; categories = [ "Game" ]; })]; }) ]; passthru.updateScript = ./update.sh; Loading @@ -96,7 +99,10 @@ buildDotnetModule rec { cc-by-nc-40 unfreeRedistributable # osu-framework contains libbass.so in repository ]; maintainers = with maintainers; [ gepbird thiagokokada ]; maintainers = with maintainers; [ gepbird thiagokokada ]; platforms = [ "x86_64-linux" ]; mainProgram = "osu!"; }; Loading Loading
pkgs/games/osu-lazer/bin.nix +76 −53 Original line number Diff line number Diff line { lib , stdenv , fetchurl , fetchzip , appimageTools , makeWrapper { lib, stdenv, fetchurl, fetchzip, appimageTools, makeWrapper, }: let pname = "osu-lazer-bin"; version = "2024.906.2"; src = { src = { aarch64-darwin = fetchzip { url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Apple.Silicon.zip"; hash = "sha256-KyvC8gEqZvXMATxS2513X0WdlR7nF8tHS4R/TPFrHao="; Loading @@ -25,7 +27,8 @@ let url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage"; hash = "sha256-zQnR3KwlE1gTWH8f+GDRBsc7Whfn9XpT1D/NLg5TtrU="; }; }.${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported."); } .${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported."); meta = { description = "Rhythm is just a *click* away (AppImage version for score submission and multiplayer, and binary distribution for Darwin systems)"; Loading @@ -36,16 +39,29 @@ let unfreeRedistributable # osu-framework contains libbass.so in repository ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; maintainers = with lib.maintainers; [ gepbird stepbrobd ]; maintainers = with lib.maintainers; [ gepbird stepbrobd ]; mainProgram = "osu!"; platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; }; passthru.updateScript = ./update-bin.sh; in if stdenv.hostPlatform.isDarwin then stdenv.mkDerivation { inherit pname version src meta passthru; if stdenv.hostPlatform.isDarwin then stdenv.mkDerivation { inherit pname version src meta passthru ; installPhase = '' runHook preInstall Loading @@ -55,8 +71,15 @@ then stdenv.mkDerivation { runHook postInstall ''; } else appimageTools.wrapType2 { inherit pname version src meta passthru; else appimageTools.wrapType2 { inherit pname version src meta passthru ; extraPkgs = pkgs: with pkgs; [ icu ]; Loading
pkgs/games/osu-lazer/default.nix +32 −26 Original line number Diff line number Diff line { lib , stdenvNoCC , buildDotnetModule , fetchFromGitHub , dotnetCorePackages , makeDesktopItem , copyDesktopItems , makeWrapper , ffmpeg , alsa-lib , SDL2 , lttng-ust , numactl , libglvnd , xorg , udev { lib, stdenvNoCC, buildDotnetModule, fetchFromGitHub, dotnetCorePackages, makeDesktopItem, copyDesktopItems, makeWrapper, ffmpeg, alsa-lib, SDL2, lttng-ust, numactl, libglvnd, xorg, udev, }: buildDotnetModule rec { Loading Loading @@ -76,7 +77,8 @@ buildDotnetModule rec { runHook postFixup ''; desktopItems = [(makeDesktopItem { desktopItems = [ (makeDesktopItem { desktopName = "osu!"; name = "osu"; exec = "osu!"; Loading @@ -84,7 +86,8 @@ buildDotnetModule rec { comment = "Rhythm is just a *click* away (no score submission or multiplayer, see osu-lazer-bin)"; type = "Application"; categories = [ "Game" ]; })]; }) ]; passthru.updateScript = ./update.sh; Loading @@ -96,7 +99,10 @@ buildDotnetModule rec { cc-by-nc-40 unfreeRedistributable # osu-framework contains libbass.so in repository ]; maintainers = with maintainers; [ gepbird thiagokokada ]; maintainers = with maintainers; [ gepbird thiagokokada ]; platforms = [ "x86_64-linux" ]; mainProgram = "osu!"; }; Loading