Unverified Commit 3e5c48e2 authored by nayeko's avatar nayeko Committed by GitHub
Browse files

harmony-music: 1.10.31 -> 1.11.2

parent 364a0a6d
Loading
Loading
Loading
Loading
+23 −27
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  lib,
  fetchFromGitHub,
  flutter324,
  pkg-config,
  makeDesktopItem,
  libayatana-appindicator,
  copyDesktopItems,
@@ -13,20 +12,39 @@
  harmony-music,
  gitUpdater,
  yq,
  jdk,
}:

flutter324.buildFlutterApplication rec {
  pname = "harmony-music";
  version = "1.10.31";
  version = "1.11.2";

  src = fetchFromGitHub {
    owner = "anandnet";
    repo = "Harmony-Music";
    tag = "v${version}";
    hash = "sha256-hHwkBNqYcwYlez3SCdc+I+LKyduHU93LCFaAZqpKIO4=";
    hash = "sha256-oLtdQWjBM2gRxBJzO++hoXeyvcALu6R4eA7nswQpuqw=";
  };

  pubspecLock = lib.importJSON ./pubspec.lock.json;

  gitHashes = {
    just_audio_media_kit = "sha256-cNuKwOAEcFCTfbKhvBvYAdmD5qFeNW16jc3A+6ID3bM=";
    sidebar_with_animation = "sha256-Y7dTO4wN7cOmm2mnzQPW/gDYltLr7wMKMXbGtAg8WzY=";
    youtube_explode_dart = "sha256-+3j+B+Ea1l/SzR8ZLp0vLYco77hkwn9VKRPvDeHqIeY=";
    terminate_restart = "sha256-NiznKbko9f2yWcI62MA2xc/NQgy/31fYqK0COHR1Wpk=";
  };

  nativeBuildInputs = [
    copyDesktopItems
    autoPatchelfHook
  ];

  buildInputs = [
    libayatana-appindicator
    jdk
  ];

  desktopItems = [
    (makeDesktopItem {
      name = "harmony-music";
@@ -45,34 +63,12 @@ flutter324.buildFlutterApplication rec {
    })
  ];

  nativeBuildInputs = [
    copyDesktopItems
    pkg-config
    autoPatchelfHook
  ];

  buildInputs = [
    libayatana-appindicator
  ];

  gitHashes = {
    device_equalizer = "sha256-fvS611D/0U5yJC5i88JdyVNhJozt8tXPhgkkvHgIDRo=";
    just_audio_media_kit = "sha256-cNuKwOAEcFCTfbKhvBvYAdmD5qFeNW16jc3A+6ID3bM=";
    player_response = "sha256-4Lc6yelLzYjH3K9rzzHHJ1XDyAyQK1xFGfj/rC7wAkg=";
    sdk_int = "sha256-ABlghY7RE/E/1G7xP10LuVSWPxbg4jyfLon8XMv8rYo=";
    sidebar_with_animation = "sha256-Y7dTO4wN7cOmm2mnzQPW/gDYltLr7wMKMXbGtAg8WzY=";
  };

  postInstall = ''
    install -Dm644 ./assets/icons/icon.png $out/share/pixmaps/harmony-music.png
    install -Dm644 assets/icons/icon.png $out/share/pixmaps/harmony-music.png
  '';

  extraWrapProgramArgs = ''
    --prefix LD_LIBRARY_PATH : "$out/app/harmony-music/lib:${
      lib.makeLibraryPath [
        mpv
      ]
    }"
    --prefix LD_LIBRARY_PATH : $out/app/harmony-music/lib:${lib.makeLibraryPath [ mpv ]}
  '';

  passthru = {
+307 −168

File changed.

Preview size limit exceeded, changes collapsed.