2013-02-16 20:48:37 +00:00
|
|
|
{ stdenv, fetchurl, ffmpeg, flac, libvorbis, libogg, libid3tag, libexif, libjpeg, sqlite }:
|
|
|
|
|
|
|
|
let version = "1.0.25"; in
|
|
|
|
|
2012-06-24 18:24:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-02-16 20:48:37 +00:00
|
|
|
name = "minidlna-${version}";
|
|
|
|
|
2012-06-24 18:24:58 +00:00
|
|
|
src = fetchurl {
|
2013-02-16 20:48:37 +00:00
|
|
|
url = "mirror://sourceforge/project/minidlna/minidlna/${version}/minidlna_${version}_src.tar.gz";
|
|
|
|
sha256 = "0l987x3bx2apnlihnjbhywgk5b2g9ysiapwclz5vphj2w3xn018p";
|
2012-06-24 18:24:58 +00:00
|
|
|
};
|
|
|
|
|
2013-02-16 20:48:37 +00:00
|
|
|
patches = [ ./config.patch ];
|
|
|
|
|
2012-06-24 18:24:58 +00:00
|
|
|
preConfigure = ''
|
2013-02-16 20:48:37 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${ffmpeg}/include/libavutil -I${ffmpeg}/include/libavcodec -I${ffmpeg}/include/libavformat"
|
2012-06-24 18:24:58 +00:00
|
|
|
export makeFlags="INSTALLPREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
2013-02-16 20:48:37 +00:00
|
|
|
buildInputs = [ ffmpeg flac libvorbis libogg libid3tag libexif libjpeg sqlite ];
|
2012-06-24 18:24:58 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Media server software";
|
2012-06-24 18:24:58 +00:00
|
|
|
longDescription = ''
|
2013-02-16 20:48:37 +00:00
|
|
|
MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
|
|
|
|
compliant with DLNA/UPnP-AV clients.
|
2012-06-24 18:24:58 +00:00
|
|
|
'';
|
|
|
|
homepage = http://sourceforge.net/projects/minidlna/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-02-16 20:48:37 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-06-24 18:24:58 +00:00
|
|
|
};
|
|
|
|
}
|