3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/gstreamer/gstreamermm/default.nix
Daniel Schaefer b85ccbac54 treewide: Add passthru.updateScript to gnome pkgs
`updateScript` lets us update packages automatically.
For packages that are hosted on the gnome mirror it's very easy to add
that. Inspired by https://github.com/NixOS/nixpkgs/issues/36150
2019-05-12 22:23:48 +02:00

35 lines
957 B
Nix

{ stdenv, fetchurl, pkgconfig, file, glibmm, gst_all_1, gnome3 }:
stdenv.mkDerivation rec {
pname = "gstreamermm";
version = "1.10.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0q4dx9sncqbwgpzma0zvj6zssc279yl80pn8irb95qypyyggwn5y";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig file ];
propagatedBuildInputs = [ glibmm gst_all_1.gst-plugins-base ];
enableParallelBuilding = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none"; # Unpredictable version stability
};
};
meta = with stdenv.lib; {
description = "C++ interface for GStreamer";
homepage = https://gstreamer.freedesktop.org/bindings/cplusplus.html;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}