Patch reserved shortcuts out of firefox.
This commit is contained in:
parent
26613ac8d6
commit
e87b6b93b6
@ -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
26
fix-firefox.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user