Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { dotnet-sdk_3
- , fetchFromGitHub
- , ffmpeg-full
- , libGL
- , icu
- , openssl
- , SDL2
- , shared-mime-info
- , stdenv }:
- with stdenv;
- mkDerivation rec {
- pname = "osu-lazer";
- version = "2020.306.0";
- src = fetchFromGitHub {
- owner = "ppy";
- repo = "osu";
- rev = "${version}";
- sha256 = "0m2ygyrl26xhzrd8l617k11rr8cbbh38i8jsphkfpcnqsmxk661w";
- };
- buildInputs = [ dotnet-sdk_3 ffmpeg-full icu libGL openssl SDL2 shared-mime-info ];
- # HOME = ".";
- LD_LIBRARY_PATH = lib.strings.makeLibraryPath [ icu openssl SDL2 ];
- buildPhase = ''
- export DOTNET_CLI_TELEMETRY_OPTOUT=1
- export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
- dotnet build osu.Desktop --runtime linux-x64 \
- --configuration Release \
- --output build
- '';
- installPhase = ''
- mkdir -p $out/bin
- cp -r build/* $out/bin
- '';
- meta = {
- homepage = "https://osu.ppy.sh/home";
- description = "The bestest free-to-win rhythm game";
- license = with lib.licenses; [ cc-by-nc-40 mit ];
- maintainers = with lib.maintainers; [ skykanin ];
- # platforms = with lib.platforms; [ darwin linux ];
- platforms = [ "x86_64-darwin" "x86_64-linux" ];
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement