dev.fron.io nixrc / 89170f4
overlays(emacs): use gstreamer and xwidgets flag for builds Tony Olagbaiye 14 days ago
1 changed file(s) with 23 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3636 in with prev.lib; rec {
3737 emacsPackagesFor = emacs: (prev.emacsPackagesFor emacs).overrideScope' emacsOverride;
3838
39 emacsGcc = prev.emacsGcc.overrideAttrs (drv: {
39 emacsGcc = (prev.emacsGcc.override {
40 inherit (final) gsettings-desktop-schemas;
41 withXwidgets = true;
42 inherit (final) webkitgtk wrapGAppsHook glib-networking;
43 }).overrideAttrs (drv: {
4044 passthru = drv.passthru // { nativeComp = true; };
4145 });
4246
43 emacsPgtkGcc = prev.emacsPgtkGcc.overrideAttrs (drv: {
47 emacsPgtkGcc = (prev.emacsPgtkGcc.override {
48 inherit (final) gsettings-desktop-schemas;
49 withXwidgets = true;
50 inherit (final) webkitgtk wrapGAppsHook glib-networking;
51 }).overrideAttrs (drv: rec {
52 gstBuildInputs = with final; with gst_all_1; [
53 gstreamer gst-libav
54 gst-plugins-base
55 gst-plugins-good
56 gst-plugins-bad
57 gst-plugins-ugly
58 ];
59 buildInputs = drv.buildInputs ++ [
60 ] ++ gstBuildInputs;
61
62 GIO_EXTRA_MODULES = "${final.glib-networking}/lib/gio/modules:${final.dconf.lib}/lib/gio/modules";
63 GST_PLUGIN_SYSTEM_PATH_1_0 = final.lib.concatMapStringsSep ":" (p: "${p}/lib/gstreamer-1.0") gstBuildInputs;
64
4465 passthru = drv.passthru // {
4566 nativeComp = true;
4667 pkgs = final.emacsPackagesFor final.emacsPgtkGcc;