nixpkgs/pkgs/tools/networking/minidlna/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Nix
Raw Normal View History

2022-10-01 00:36:28 +01:00
{ lib, stdenv, fetchgit, autoreconfHook, ffmpeg, flac, libvorbis, libogg, libid3tag, libexif, libjpeg, sqlite, gettext, nixosTests, zlib }:
let
2019-08-13 22:52:01 +01:00
pname = "minidlna";
version = "1.3.2";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchgit {
url = "https://git.code.sf.net/p/${pname}/git";
rev = "v${builtins.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-v+puglrbuLqHIAbrO7bhOA0npc/GYp0Bdi3DnD9qyII=";
2012-06-24 19:24:58 +01:00
};
preConfigure = ''
export makeFlags="INSTALLPREFIX=$out"
'';
nativeBuildInputs = [ autoreconfHook ];
2022-10-01 00:36:28 +01:00
buildInputs = [ ffmpeg flac libvorbis libogg libid3tag libexif libjpeg sqlite gettext zlib ];
2012-06-24 19:24:58 +01:00
2016-04-08 21:37:42 +01: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-06 11:53:30 +00:00
passthru.tests = { inherit (nixosTests) minidlna; };
meta = with lib; {
description = "Media server software";
2012-06-24 19:24:58 +01:00
longDescription = ''
MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
compliant with DLNA/UPnP-AV clients.
2012-06-24 19:24:58 +01:00
'';
homepage = "https://sourceforge.net/projects/minidlna/";
2015-09-12 07:24:24 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
2012-06-24 19:24:58 +01:00
};
}