2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, 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
|
|
|
|
version = "0.0.8";
|
|
|
|
|
|
|
|
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}";
|
|
|
|
sha256 = "14i5jrry6qiap5l2x2jqj7arymllajl3wgnk29ccvr8d45zp4jn1";
|
|
|
|
};
|
|
|
|
|
2020-10-06 21:35:26 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hzeller/gmrender-resurrect/commit/dc8c4d4dc234311b3099e7f1efadf5d9733c81e9.patch";
|
|
|
|
sha256 = "0fqi58viaq9jg5h5j1725qrach4c3wmfmh0q43q4r8az2pn7dszw";
|
|
|
|
name = "libupnp.patch";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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";
|
2019-11-16 23:36:59 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ koral ashkitten ];
|
|
|
|
};
|
|
|
|
}
|