mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
19b9dd603a
* gmrender-resurrect: cc96ede -> v0.0.8 * gmrender-resurrect: add ashkitten as maintainer * gmrender-resurrect: readability and idiomacy improvements * gmrender-resurrect: fetchpatch is not used * gmrender-resurrect: fix version number format for nix
39 lines
1.3 KiB
Nix
39 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, makeWrapper, gstreamer
|
|
, 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";
|
|
};
|
|
|
|
buildInputs = [ gstreamer libupnp ];
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper ];
|
|
|
|
postInstall = ''
|
|
for prog in "$out/bin/"*; do
|
|
wrapProgram "$prog" --suffix GST_PLUGIN_SYSTEM_PATH_1_0 : "${pluginPath}"
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer";
|
|
homepage = https://github.com/hzeller/gmrender-resurrect;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ koral ashkitten ];
|
|
};
|
|
}
|