gnome3.sushi: fix module loading

This commit is contained in:
Jan Tojnar 2019-10-27 15:27:45 +01:00
parent 4cd2cb43fb
commit 885576c97a
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

@ -22,6 +22,15 @@ stdenv.mkDerivation rec {
gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
];
# See https://github.com/NixOS/nixpkgs/issues/31168
postInstall = ''
for file in $out/libexec/org.gnome.NautilusPreviewer
do
sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \
-i $file
done
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "sushi";