dotfiles/nixos/overlays/jd-gui-wayland.nix
2024-11-07 16:25:41 -07:00

24 lines
440 B
Nix

#
# Hacks to make jd-gui run on wayland.
#
{ ... }:
let
package = "jd-gui";
overlay = final': prev': {
${package} = prev'.${package}.overrideAttrs (
final: prev: {
# Patch the installed binary to be nice.
installPhase = builtins.replaceStrings [ "export" ] [
"export _JAVA_AWT_WM_NONREPARENTING=1; export"
] prev.installPhase;
}
);
};
in
{
nixpkgs.overlays = [ overlay ];
}