2021-04-16 02:02:14 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, makeWrapper, gstreamer
|
2019-11-16 23:36:59 +00:00
|
|
|
, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-libav, libupnp }:
|
|
|
|
|
|
|
|
let
|
2021-04-16 02:02:14 +01:00
|
|
|
version = "0.0.9";
|
2019-11-16 23:36:59 +00:00
|
|
|
|
|
|
|
makePluginPath = plugins: builtins.concatStringsSep ":" (map (p: p + "/lib/gstreamer-1.0") plugins);
|
|
|
|
|
|
|
|
pluginPath = makePluginPath [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gmrender-resurrect";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hzeller";
|
|
|
|
repo = "gmrender-resurrect";
|
|
|
|
rev = "v${version}";
|
2021-04-16 02:02:14 +01:00
|
|
|
sha256 = "0byxd28hnhkhf3lqsad43n6czfajvc1ksg9zikxb95wwk4ljqv1q";
|
2019-11-16 23:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gstreamer libupnp ];
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
|
2019-11-16 23:36:59 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out/bin/"*; do
|
|
|
|
wrapProgram "$prog" --suffix GST_PLUGIN_SYSTEM_PATH_1_0 : "${pluginPath}"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-16 23:36:59 +00:00
|
|
|
description = "Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/hzeller/gmrender-resurrect";
|
2021-04-16 02:02:14 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2019-11-16 23:36:59 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-16 02:02:14 +01:00
|
|
|
maintainers = with maintainers; [ koral hzeller ];
|
2019-11-16 23:36:59 +00:00
|
|
|
};
|
|
|
|
}
|