2022-10-06 18:32:54 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, ffmpeg, flac, libvorbis, libogg, libid3tag, libexif, libjpeg, sqlite, gettext, nixosTests, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "minidlna";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.3.2";
|
2022-03-30 09:31:56 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.code.sf.net/p/${pname}/git";
|
|
|
|
rev = "v${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-v+puglrbuLqHIAbrO7bhOA0npc/GYp0Bdi3DnD9qyII=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export makeFlags="INSTALLPREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
buildInputs = [ ffmpeg flac libvorbis libogg libid3tag libexif libjpeg sqlite gettext zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/man/man{5,8}
|
|
|
|
cp minidlna.conf.5 $out/share/man/man5
|
|
|
|
cp minidlnad.8 $out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) minidlna; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Media server software";
|
|
|
|
longDescription = ''
|
|
|
|
MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
|
|
|
|
compliant with DLNA/UPnP-AV clients.
|
|
|
|
'';
|
|
|
|
homepage = "https://sourceforge.net/projects/minidlna/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|