Unverified Commit 1d49c321 authored by Guy Chronister's avatar Guy Chronister
Browse files

jellyfin-desktop: migrate to by-name and switch to kdePackages Qt stack

- Move package to pkgs/by-name/je/jellyfin-desktop
- Replace direct Qt inputs with kdePackages.* equivalents
  (qtbase, qtdeclarative, qtwebchannel, qtwebengine, wrapQtAppsHook, mpvqt)
- Convert derivation to stdenv.mkDerivation (finalAttrs: { … }) style
- Use tag = "v${finalAttrs.version}" instead of rev
- Remove top-level jellyfin-desktop attribute; by-name exposes it automatically
- Preserve existing patch and build logic
parent c53e5d1c
Loading
Loading
Loading
Loading
+10 −15
Original line number Diff line number Diff line
@@ -5,27 +5,22 @@
  cmake,
  ninja,
  python3,
  wrapQtAppsHook,
  qtbase,
  qtdeclarative,
  qtwebchannel,
  qtwebengine,
  kdePackages,
  mpv-unwrapped,
  mpvqt,
  libcec,
  SDL2,
  libxrandr,
  cacert,
  nix-update-script,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "jellyfin-desktop";
  version = "2.0.0";

  src = fetchFromGitHub {
    owner = "jellyfin";
    repo = "jellyfin-desktop";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-ITlYOrMS6COx9kDRSBi4wM6mzL/Q2G5X9GbABwDIOe4=";
    fetchSubmodules = true;
  };
@@ -36,15 +31,15 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = [
    cmake
    ninja
    wrapQtAppsHook
    kdePackages.wrapQtAppsHook
  ]
  ++ lib.optional stdenv.hostPlatform.isDarwin python3;

  buildInputs = [
    qtbase
    qtdeclarative
    qtwebchannel
    qtwebengine
    kdePackages.qtbase
    kdePackages.qtdeclarative
    kdePackages.qtwebchannel
    kdePackages.qtwebengine
    mpv-unwrapped

    # input sources
@@ -55,7 +50,7 @@ stdenv.mkDerivation rec {
    libxrandr
    cacert
  ]
  ++ lib.optional (!stdenv.hostPlatform.isDarwin) mpvqt;
  ++ lib.optional (!stdenv.hostPlatform.isDarwin) kdePackages.mpvqt;

  cmakeFlags = [
    "-DCHECK_FOR_UPDATES=OFF"
@@ -97,4 +92,4 @@ stdenv.mkDerivation rec {
    ];
    mainProgram = "jellyfin-desktop";
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -1804,8 +1804,6 @@ with pkgs;

  intensity-normalization = with python3Packages; toPythonApplication intensity-normalization;

  jellyfin-desktop = kdePackages.callPackage ../applications/video/jellyfin-desktop { };

  jellyfin-mpv-shim = python3Packages.callPackage ../applications/video/jellyfin-mpv-shim { };

  klaus = with python3Packages; toPythonApplication klaus;