2024-10-11 05:15:48 +00:00
|
|
|
{ lib, stdenv, fetchgit, fetchpatch2, 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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.3.3";
|
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}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-InsSguoGi1Gp8R/bd4/c16xqRuk0bRsgw7wvcbokgKo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/minidlna/-/raw/affcf0dd1e6f8e33d0ba90b2b0733736fa1aeb71/ffmpeg7.patch";
|
|
|
|
hash = "sha256-MZFPY4FywoMkZ//fKml6o5J1QG5qiScgtI+KFw5hENw=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "minidlnad";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|