don't rebuild half the world for the gtk3 patch
This commit is contained in:
parent
5b73e998df
commit
fb5e14091e
1 changed files with 31 additions and 16 deletions
|
|
@ -14,23 +14,36 @@
|
|||
android_sdk.accept_license = true;
|
||||
allowUnfree = true;
|
||||
};
|
||||
overlays = [
|
||||
(_: prev: {
|
||||
# Without this, GTK3 can't create a GL context on Mesa builds without GLES 1
|
||||
# (Flathub's since 26.2.8). Drop once nixpkgs has a GTK3 release with it.
|
||||
gtk3 = prev.gtk3.overrideAttrs (old: {
|
||||
patches = old.patches or [ ] ++ [ ./patches/gtk3-egl-renderable-type.patch ];
|
||||
});
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
packages =
|
||||
let
|
||||
default = pkgs.callPackage ./pkg {
|
||||
unpatched = pkgs.callPackage ./pkg {
|
||||
src = self;
|
||||
commit = self.shortRev or self.dirtyShortRev;
|
||||
};
|
||||
|
||||
# Without this, GTK3 can't create a GL context on Mesa builds without GLES 1
|
||||
# (Flathub's since 26.2.8). Drop once nixpkgs has a GTK3 release with it.
|
||||
# Swapped into the finished closure, as an overlay would rebuild half of nixpkgs
|
||||
withPatchedGtk =
|
||||
drv:
|
||||
pkgs.replaceDependencies {
|
||||
inherit drv;
|
||||
replacements = [
|
||||
{
|
||||
oldDependency = pkgs.gtk3;
|
||||
newDependency = pkgs.gtk3.overrideAttrs (old: {
|
||||
patches = old.patches or [ ] ++ [ ./patches/gtk3-egl-renderable-type.patch ];
|
||||
});
|
||||
}
|
||||
];
|
||||
}
|
||||
// {
|
||||
inherit (drv) pname version meta;
|
||||
};
|
||||
|
||||
default = withPatchedGtk unpatched;
|
||||
in
|
||||
{
|
||||
inherit default;
|
||||
|
|
@ -41,12 +54,14 @@
|
|||
appId = "nexus.federated.nexus";
|
||||
# The runtime's GStreamer gets loaded instead of ours, and it can't
|
||||
# load our plugins, so keep wrapGAppsHook from pointing it at them
|
||||
package = default.overrideAttrs (old: {
|
||||
postInstall = ''
|
||||
unset GST_PLUGIN_SYSTEM_PATH_1_0
|
||||
''
|
||||
+ old.postInstall;
|
||||
});
|
||||
package = withPatchedGtk (
|
||||
unpatched.overrideAttrs (old: {
|
||||
postInstall = ''
|
||||
unset GST_PLUGIN_SYSTEM_PATH_1_0
|
||||
''
|
||||
+ old.postInstall;
|
||||
})
|
||||
);
|
||||
runtime = "org.gnome.Platform/51";
|
||||
permissions = {
|
||||
share = [ "network" ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue