Skip to content

Commit

Permalink
gst_all_1.gstreamer: 1.20.3 -> 1.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Apr 16, 2023
1 parent 41baeb5 commit 4b859ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
15 changes: 9 additions & 6 deletions pkgs/development/libraries/gstreamer/base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
, tremor # provides 'virbisidec'
, libGL
, gobject-introspection
, hotdoc
, enableX11 ? stdenv.isLinux
, libXv
, libXext
, libXi
, libXv
, enableWayland ? stdenv.isLinux
, wayland
, wayland-protocols
Expand All @@ -41,15 +43,15 @@

stdenv.mkDerivation (finalAttrs: {
pname = "gst-plugins-base";
version = "1.20.3";
version = "1.22.2";

outputs = [ "out" "dev" ];

src = let
inherit (finalAttrs) pname version;
in fetchurl {
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-fjCz3YGnA4D/dVT5mEcdaZb/drvm/FRHCW+FHiRHPJ8=";
hash = "sha256-62USDE7nm3oVPDwZctXAFYwhUYd8xR7Hclu6V0lnnUk=";
};

strictDeps = true;
Expand All @@ -65,9 +67,10 @@ stdenv.mkDerivation (finalAttrs: {
orc
glib
gstreamer
# docs
# TODO add hotdoc here
gobject-introspection

# documentation
hotdoc
] ++ lib.optional enableWayland wayland;

buildInputs = [
Expand All @@ -91,6 +94,7 @@ stdenv.mkDerivation (finalAttrs: {
alsa-lib
] ++ lib.optionals enableX11 [
libXext
libXi
libXv
] ++ lib.optionals enableWayland [
wayland
Expand All @@ -104,7 +108,6 @@ stdenv.mkDerivation (finalAttrs: {

mesonFlags = [
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
# See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices
"-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
Expand Down
14 changes: 6 additions & 8 deletions pkgs/development/libraries/gstreamer/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,34 @@
, flex
, python3
, glib
, hotdoc
, makeWrapper
, libcap
, libunwind
, darwin
, elfutils # for libdw
, bash-completion
, lib
, Cocoa
, CoreServices
, gobject-introspection
, testers
}:

stdenv.mkDerivation (finalAttrs: {
pname = "gstreamer";
version = "1.20.3";
version = "1.22.2";

outputs = [
"bin"
"out"
"dev"
# "devdoc" # disabled until `hotdoc` is packaged in nixpkgs, see:
# - https://github.com/NixOS/nixpkgs/pull/98767
# - https://github.com/NixOS/nixpkgs/issues/98769#issuecomment-702296551
];

src = let
inherit (finalAttrs) pname version;
in fetchurl {
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-YH2vZLu9X7GK+dF+IcDSLE1wL//oOyPLItGxryyiOio=";
hash = "sha256-sq/nNgOSHGCLpIlp27fXQ3dnRL/l2AWeziQRN7f4jiE=";
};

depsBuildBuild = [
Expand All @@ -59,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
gobject-introspection

# documentation
# TODO add hotdoc here
hotdoc
] ++ lib.optionals stdenv.isLinux [
libcap # for setcap binary
];
Expand All @@ -72,6 +70,7 @@ stdenv.mkDerivation (finalAttrs: {
libunwind
elfutils
] ++ lib.optionals stdenv.isDarwin [
Cocoa
CoreServices
];

Expand All @@ -82,7 +81,6 @@ stdenv.mkDerivation (finalAttrs: {
mesonFlags = [
"-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
] ++ lib.optionals stdenv.isDarwin [
# darwin.libunwind doesn't have pkg-config definitions so meson doesn't detect it.
"-Dlibunwind=disabled"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gstreamer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}:

{
gstreamer = callPackage ./core { inherit CoreServices; };
gstreamer = callPackage ./core { inherit Cocoa CoreServices; };

gstreamermm = callPackage ./gstreamermm { };

Expand Down

0 comments on commit 4b859ee

Please sign in to comment.