update shell.nix for new gstreamer dependencies

This commit is contained in:
Jasper Hugo 2021-11-05 10:18:45 +07:00
parent e061f83524
commit a38099eb34
1 changed files with 19 additions and 3 deletions

View File

@ -1,6 +1,17 @@
with import <nixpkgs> {}; with import <nixpkgs> {};
let let
gstreamer = gst_all_1.gstreamer.overrideAttrs(old: rec { meson-patched = meson.overridePythonAttrs(old: rec {
version = "0.59.4";
src = pythonPackages.fetchPypi {
inherit version;
pname = old.pname;
sha256 = "a77988cc50554f73ede075bc9bf77a2d7ecb6ff892f2a0180d4940920eaaec84";
};
patches = builtins.filter (patch: baseNameOf patch != "gir-fallback-path.patch") old.patches;
});
gstreamer = (gst_all_1.gstreamer.override {
meson = meson-patched;
}).overrideAttrs(old: rec {
version = "1.19.3"; version = "1.19.3";
src = fetchurl { src = fetchurl {
url = "https://gstreamer.freedesktop.org/src/${old.pname}/${old.pname}-${version}.tar.xz"; url = "https://gstreamer.freedesktop.org/src/${old.pname}/${old.pname}-${version}.tar.xz";
@ -10,6 +21,7 @@ let
mesonFlags = old.mesonFlags ++ ["-Dorc=disabled"]; mesonFlags = old.mesonFlags ++ ["-Dorc=disabled"];
}); });
gst-plugins-base = (gst_all_1.gst-plugins-base.override { gst-plugins-base = (gst_all_1.gst-plugins-base.override {
meson = meson-patched;
gstreamer = gstreamer; gstreamer = gstreamer;
}).overrideAttrs(old: rec { }).overrideAttrs(old: rec {
version = "1.19.3"; version = "1.19.3";
@ -21,6 +33,7 @@ let
mesonFlags = old.mesonFlags ++ ["-Dorc=disabled"]; mesonFlags = old.mesonFlags ++ ["-Dorc=disabled"];
}); });
gst-plugins-good = (gst_all_1.gst-plugins-good.override { gst-plugins-good = (gst_all_1.gst-plugins-good.override {
meson = meson-patched;
gst-plugins-base = gst-plugins-base; gst-plugins-base = gst-plugins-base;
}).overrideAttrs(old: rec { }).overrideAttrs(old: rec {
version = "1.19.3"; version = "1.19.3";
@ -32,6 +45,7 @@ let
mesonFlags = old.mesonFlags ++ ["-Dorc=disabled"]; mesonFlags = old.mesonFlags ++ ["-Dorc=disabled"];
}); });
gst-plugins-bad = (gst_all_1.gst-plugins-bad.override { gst-plugins-bad = (gst_all_1.gst-plugins-bad.override {
meson = meson-patched;
gst-plugins-base = gst-plugins-base; gst-plugins-base = gst-plugins-base;
}).overrideAttrs(old: rec { }).overrideAttrs(old: rec {
version = "1.19.3"; version = "1.19.3";
@ -40,9 +54,10 @@ let
sha256 = "50193a23b13713ccb32ee5d1852faeeaed29b91f8398285acdfd522fa3e16835"; sha256 = "50193a23b13713ccb32ee5d1852faeeaed29b91f8398285acdfd522fa3e16835";
}; };
patches = []; patches = [];
mesonFlags = old.mesonFlags ++ ["-Dorc=disabled" "-Dgs=disabled" "-Disac=disabled" "-Dldac=disabled" "-Donnx=disabled" "-Dopenaptx=disabled" "-Dqroverlay=disabled" "-Dtests=disabled"]; mesonFlags = old.mesonFlags ++ ["-Dorc=disabled" "-Dgs=disabled" "-Disac=disabled" "-Dldac=disabled" "-Donnx=disabled" "-Dopenaptx=disabled" "-Dqroverlay=disabled" "-Dtests=disabled" "-Dfaad=disabled" "-Dmpeg2enc=disabled" "-Dmplex=disabled" "-Dresindvd=disabled" "-Dx265=disabled"];
}); });
libnice-patched = (libnice.override { libnice-patched = (libnice.override {
meson = meson-patched;
gst_all_1 = { gst_all_1 = {
gstreamer = gstreamer; gstreamer = gstreamer;
gst-plugins-base = gst-plugins-base; gst-plugins-base = gst-plugins-base;
@ -53,7 +68,8 @@ let
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-base
openssl openssl
]; ];
mesonFlags = old.mesonFlags ++ ["-Dgupnp=disabled"]; outputs = [ "bin" "out" "dev" ];
mesonFlags = old.mesonFlags ++ ["-Dgupnp=disabled" "-Dgtk_doc=disabled"];
}); });
in in
mkShell { mkShell {