zotero: patch firefox xpi loading

This commit is contained in:
Edward Tjörnhammar 2016-02-29 19:11:38 +01:00
parent 9af50a2e7d
commit a6d3b3f97f
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, bash, firefox, perl, unzipNLS, xorg }:
{ stdenv, fetchurl, fetchpatch, bash, firefox, perl, unzipNLS, xorg }:
let
@ -7,6 +7,14 @@ let
sha256 = "02h2ja08v8as4fawj683rh5rmxsjf5d0qmvqa77i176nm20y5s7s";
};
firefox' = stdenv.lib.overrideDerivation (firefox) (attrs: {
patches = [ (fetchpatch {
url = "https://hg.mozilla.org/releases/mozilla-beta/raw-rev/0558da46f20c";
sha256 = "08ibp7hny78x8ywfvrh56z90kf8fjpf04mibdlrwkw4f1vgm3fc3";
name = "fix-external-xpi-loader";
}) ];
});
version = "4.0.28";
in
@ -21,7 +29,9 @@ stdenv.mkDerivation {
nativeBuildInputs = [ perl unzipNLS ];
inherit bash firefox;
inherit bash;
firefox = firefox';
phases = "unpackPhase installPhase fixupPhase";