Unverified Commit d27b25d3 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

sonobus: remove webkitgtk, cleanup, add maintaner l1npengtul (#454848)

parents 9c31e033 01354e86
Loading
Loading
Loading
Loading
+31 −8
Original line number Diff line number Diff line
@@ -17,8 +17,10 @@
  libopus,
  curl,
  gtk3,
  nix-update-script,
  copyDesktopItems,
  makeDesktopItem,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "sonobus";
  version = "1.7.2";
@@ -31,10 +33,26 @@ stdenv.mkDerivation (finalAttrs: {
    fetchSubmodules = true;
  };

  desktopItems = [
    (makeDesktopItem {
      type = "Application";
      name = "sonobus";
      desktopName = "Sonobus";
      comment = "High-quality network audio streaming";
      icon = "sonobus";
      exec = "sonobus";
      categories = [
        "Audio"
        "AudioVideo"
      ];
    })
  ];

  nativeBuildInputs = [
    autoPatchelfHook
    cmake
    pkg-config
    copyDesktopItems
  ];

  buildInputs = [
@@ -44,7 +62,6 @@ stdenv.mkDerivation (finalAttrs: {
    libopus
    curl
    gtk3
    # webkitgtk_4_0
  ];

  runtimeDependencies = [
@@ -71,17 +88,23 @@ stdenv.mkDerivation (finalAttrs: {
    runHook preInstall
    cd ../linux
    ./install.sh "$out"

    install -Dm444 $src/images/sonobus_logo_96.png $out/share/pixmaps/sonobus.png

    runHook postInstall
  '';

  meta = with lib; {
    # webkitgtk_4_0 was removed
    broken = true;
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "High-quality network audio streaming";
    homepage = "https://sonobus.net/";
    license = with licenses; [ gpl3Plus ];
    maintainers = with maintainers; [ PowerUser64 ];
    platforms = platforms.unix;
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [
      PowerUser64
      l1npengtul
    ];
    platforms = lib.platforms.unix;
    mainProgram = "sonobus";
  };
})