{ lib , stdenv , appstream , cargo , desktop-file-utils , fetchFromGitea , gitUpdater , gtk4 , libadwaita , libglvnd , libepoxy , meson , mpv , ninja , openssl , pkg-config , rustc , rustPlatform , wrapGAppsHook4 }: stdenv.mkDerivation rec { pname = "delfin"; version = "0.4.1"; src = fetchFromGitea { domain = "codeberg.org"; owner = "avery42"; repo = "delfin"; rev = "v${version}"; hash = "sha256-LBdHWEGz6dujcF3clrJbViohgiBTyWR7Y70totimVJ8="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; hash = "sha256-TaUYqq4rkMBXhIM+0ZH6O0F+SUOpT1ImgLx2HCzJPrM="; }; postPatch = '' substituteInPlace delfin/Cargo.toml \ --replace-warn 'rust-version = "1.76.0"' 'rust-version = "1.75.0"' ''; nativeBuildInputs = [ appstream desktop-file-utils meson ninja pkg-config rustPlatform.cargoSetupHook cargo rustc wrapGAppsHook4 ]; buildInputs = [ gtk4 libadwaita libglvnd libepoxy mpv openssl ]; mesonFlags = [ "-Dprofile=release" ]; passthru.updateScript = gitUpdater { rev-prefix = "v"; }; meta = with lib; { description = "stream movies and TV shows from Jellyfin"; homepage = "https://www.delfin.avery.cafe/"; license = licenses.gpl3Only; maintainers = with maintainers; [ colinsane ]; }; }