summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-05-05 00:18:20 -0500
committerGitHub <noreply@github.com>2018-05-05 00:18:20 -0500
commit7bbd4e9456cb6b236b127335a767214d7d639108 (patch)
tree49b24c3338dd977f8bc72fa867c1d298d01c6aa9
parent4f08e5902fbe72b809eb754d26075830e94ddac6 (diff)
parentadd9f5cf4a7affb20de29cfc74d0c91621f35bd4 (diff)
downloadnixlib-7bbd4e9456cb6b236b127335a767214d7d639108.tar
nixlib-7bbd4e9456cb6b236b127335a767214d7d639108.tar.gz
nixlib-7bbd4e9456cb6b236b127335a767214d7d639108.tar.bz2
nixlib-7bbd4e9456cb6b236b127335a767214d7d639108.tar.lz
nixlib-7bbd4e9456cb6b236b127335a767214d7d639108.tar.xz
nixlib-7bbd4e9456cb6b236b127335a767214d7d639108.tar.zst
nixlib-7bbd4e9456cb6b236b127335a767214d7d639108.zip
Merge pull request #38489 from k0ral/nixos-unstable
gmrender-resurrect: init
-rw-r--r--pkgs/tools/networking/gmrender-resurrect/default.nix36
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/networking/gmrender-resurrect/default.nix b/pkgs/tools/networking/gmrender-resurrect/default.nix
new file mode 100644
index 000000000000..6926f1522c71
--- /dev/null
+++ b/pkgs/tools/networking/gmrender-resurrect/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub, autoconf, automake, pkgconfig, makeWrapper
+, gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-libav, libupnp }:
+
+let version = "4f221e6b85abf85957b547436e982d7a501a1718"; in
+
+stdenv.mkDerivation {
+  name = "gmrender-resurrect-${version}";
+
+  src = fetchFromGitHub {
+    owner = "hzeller";
+    repo = "gmrender-resurrect";
+    rev = "${version}";
+    sha256 = "1dmdhyz27bh74qmvncfd3kw7zqwnd05bhxcfjjav98z5qrxdygj4";
+  };
+
+  preConfigurePhases = "autoconfPhase";
+
+  autoconfPhase = "./autogen.sh";
+
+  buildInputs = [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav libupnp ];
+  nativeBuildInputs = [ autoconf automake pkgconfig makeWrapper ];
+
+  postInstall = ''
+    for prog in "$out/bin/"*; do
+        wrapProgram "$prog" --suffix GST_PLUGIN_SYSTEM_PATH : "${gst-plugins-base}/lib/gstreamer-1.0:${gst-plugins-good}/lib/gstreamer-1.0:${gst-plugins-bad}/lib/gstreamer-1.0:${gst-plugins-ugly}/lib/gstreamer-1.0:${gst-libav}/lib/gstreamer-1.0"
+    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 = [ maintainers.koral ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 24b33231f77e..2f387d5cd0ab 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2565,6 +2565,10 @@ with pkgs;
 
   glxinfo = callPackage ../tools/graphics/glxinfo { };
 
+  gmrender-resurrect = callPackage ../tools/networking/gmrender-resurrect {
+    inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav;
+  };
+
   gmvault = callPackage ../tools/networking/gmvault { };
 
   gnash = callPackage ../misc/gnash { };