snappy: restore of RTTI patch

This is required for *Ceph* to compile, as the comment states, and was accidentally removed.
A similar patch is also present for *leveldb* for instance.
Also bumps the patch to the appropriate version.

partial revert of 5240499fb672c5f7e25cd84bff780062cb3cf75a

Signed-off-by: benaryorg <binary@benary.org>

benaryorg 4e6b9a1d 9669aafd

+17
+17
pkgs/by-name/sn/snappy/package.nix
··· 3 3 stdenv, 4 4 fetchFromGitHub, 5 5 cmake, 6 + fetchpatch, 6 7 static ? stdenv.hostPlatform.isStatic, 7 8 }: 8 9 ··· 19 20 20 21 patches = [ 21 22 ./revert-PUBLIC.patch 23 + # Re-enable RTTI, without which other applications can't subclass snappy::Source 24 + # While the patch was rejected upstream, it does not make it any less necessary to carry forward. 25 + # ==> lack of RTTI *breaks* Ceph (and others) <== 26 + # 27 + # https://tracker.ceph.com/issues/53060 28 + # https://build.opensuse.org/package/show/openSUSE:Factory/snappy 29 + # 30 + # Should this patch fail to apply use the above site to get the updated patch (rev in the url below). 31 + # On the page there's a "latest revision" section which lists the last request which was merged into it. 32 + # Click the "Request <insert number>" link, then view any file using "View file", and copy the rev from your address bar. 33 + # For a different revision (in case nixpkgs is behind or something) you can go through the full revision history. 34 + # Should the patch not be available for the nixpkgs version, ideally wait until the patch becomes available before bumping, or vendor it if necessary. 35 + (fetchpatch { 36 + url = "https://build.opensuse.org/public/source/openSUSE:Factory/snappy/reenable-rtti.patch?rev=e3449869b466869fc6b8a03a1a528fa6"; 37 + hash = "sha256-JhVhkHh7XPx1Bzf5xnOgWLgwh1oihX3O+emQWzE4Dho="; 38 + }) 22 39 ]; 23 40 24 41 outputs = [