diff --git a/pkgs/applications/graphics/megapixels/default.nix b/pkgs/applications/graphics/megapixels/default.nix index 9b1377e520c2..c866f2a1da53 100644 --- a/pkgs/applications/graphics/megapixels/default.nix +++ b/pkgs/applications/graphics/megapixels/default.nix @@ -4,6 +4,7 @@ , meson , ninja , pkg-config +, glib , wrapGAppsHook , epoxy , gtk4 @@ -35,7 +36,13 @@ stdenv.mkDerivation rec { sha256 = "0jnfzwvq58p4ksyifma10i158r2fb7fv72ymibgcxbnx596xpjb2"; }; - nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ]; + nativeBuildInputs = [ + meson + ninja + pkg-config + glib + wrapGAppsHook + ]; buildInputs = [ epoxy @@ -43,6 +50,10 @@ stdenv.mkDerivation rec { zbar ]; + postInstall = '' + glib-compile-schemas $out/share/glib-2.0/schemas + ''; + preFixup = optionalString (tiffSupport || jpgSupport) '' gappsWrapperArgs+=( --prefix PATH : ${runtimePath}