Advertisement
Guest User

Untitled

a guest
Mar 10th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. { dotnet-sdk_3
  2. , fetchFromGitHub
  3. , ffmpeg-full
  4. , libGL
  5. , icu
  6. , openssl
  7. , SDL2
  8. , shared-mime-info
  9. , stdenv }:
  10.  
  11. with stdenv;
  12. mkDerivation rec {
  13. pname = "osu-lazer";
  14. version = "2020.306.0";
  15.  
  16. src = fetchFromGitHub {
  17. owner = "ppy";
  18. repo = "osu";
  19. rev = "${version}";
  20. sha256 = "0m2ygyrl26xhzrd8l617k11rr8cbbh38i8jsphkfpcnqsmxk661w";
  21. };
  22.  
  23. buildInputs = [ dotnet-sdk_3 ffmpeg-full icu libGL openssl SDL2 shared-mime-info ];
  24.  
  25. # HOME = ".";
  26. LD_LIBRARY_PATH = lib.strings.makeLibraryPath [ icu openssl SDL2 ];
  27.  
  28. buildPhase = ''
  29. export DOTNET_CLI_TELEMETRY_OPTOUT=1
  30. export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
  31.  
  32. dotnet build osu.Desktop --runtime linux-x64 \
  33. --configuration Release \
  34. --output build
  35. '';
  36.  
  37. installPhase = ''
  38. mkdir -p $out/bin
  39. cp -r build/* $out/bin
  40. '';
  41.  
  42. meta = {
  43. homepage = "https://osu.ppy.sh/home";
  44. description = "The bestest free-to-win rhythm game";
  45. license = with lib.licenses; [ cc-by-nc-40 mit ];
  46. maintainers = with lib.maintainers; [ skykanin ];
  47. # platforms = with lib.platforms; [ darwin linux ];
  48. platforms = [ "x86_64-darwin" "x86_64-linux" ];
  49. };
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement