2021-04-16 01:02:14 +00: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
|
2022-09-23 19:57:07 +00:00
|
|
|
version = "0.1";
|
2019-11-16 23:36:59 +00:00
|
|
|
|
2021-06-06 23:21:12 +00:00
|
|
|
pluginPath = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ];
|
2019-11-16 23:36:59 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gmrender-resurrect";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hzeller";
|
|
|
|
repo = "gmrender-resurrect";
|
|
|
|
rev = "v${version}";
|
2022-09-23 19:57:07 +00:00
|
|
|
sha256 = "sha256-FR5bMjwPnY1/PNdPRiaxoY1keogq40M06YOaoks4zVY=";
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gmediarender";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hzeller/gmrender-resurrect";
|
2021-04-16 01:02:14 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-11-16 23:36:59 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-16 01:02:14 +00:00
|
|
|
maintainers = with maintainers; [ koral hzeller ];
|
2019-11-16 23:36:59 +00:00
|
|
|
};
|
|
|
|
}
|