1 { lib, stdenv, fetchgit, fetchpatch2, autoreconfHook, ffmpeg, flac, libvorbis, libogg, libid3tag, libexif, libjpeg, sqlite, gettext, nixosTests, zlib }:
11 url = "https://git.code.sf.net/p/${pname}/git";
12 rev = "v${builtins.replaceStrings [ "." ] [ "_" ] version}";
13 hash = "sha256-InsSguoGi1Gp8R/bd4/c16xqRuk0bRsgw7wvcbokgKo=";
18 url = "https://gitlab.archlinux.org/archlinux/packaging/packages/minidlna/-/raw/affcf0dd1e6f8e33d0ba90b2b0733736fa1aeb71/ffmpeg7.patch";
19 hash = "sha256-MZFPY4FywoMkZ//fKml6o5J1QG5qiScgtI+KFw5hENw=";
24 export makeFlags="INSTALLPREFIX=$out"
27 nativeBuildInputs = [ autoreconfHook ];
29 buildInputs = [ ffmpeg flac libvorbis libogg libid3tag libexif libjpeg sqlite gettext zlib ];
32 mkdir -p $out/share/man/man{5,8}
33 cp minidlna.conf.5 $out/share/man/man5
34 cp minidlnad.8 $out/share/man/man8
37 passthru.tests = { inherit (nixosTests) minidlna; };
40 description = "Media server software";
42 MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
43 compliant with DLNA/UPnP-AV clients.
45 homepage = "https://sourceforge.net/projects/minidlna/";
46 license = licenses.gpl2Only;
47 platforms = platforms.linux;
48 mainProgram = "minidlnad";