Patch reserved shortcuts out of firefox.

This commit is contained in:
Gabriel Ebner 2020-08-31 10:43:13 +02:00
parent 26613ac8d6
commit e87b6b93b6
2 changed files with 30 additions and 0 deletions

View File

@ -1,6 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
./fix-firefox.nix
];
environment.systemPackages = with pkgs.haskellPackages; with pkgs; [
gmpc
m4

26
fix-firefox.nix Normal file
View File

@ -0,0 +1,26 @@
{ config, pkgs, ... }:
# unreserve ctrl+w shortcuts
{
nixpkgs.config.packageOverrides = pkgs: with pkgs; {
firefox-unwrapped = stdenv.mkDerivation {
inherit (firefox-unwrapped) name version;
buildCommand = ''
mkdir -p $out
cp -ra ${firefox-unwrapped}/. $out/.
chmod +w -R $out
sed -i "s|${firefox-unwrapped}|$out|" $out/bin/firefox
sed -i 's/reserved="true"/ /g' $out/lib/firefox/browser/omni.ja
'';
inherit (firefox-unwrapped) meta;
passthru = {
inherit (firefox-unwrapped.passthru) version isFirefox3Like gtk
nspr gssSupport browserName ffmpegSupport gtk3;
};
};
};
}