From d3631d44ed0f7761bd236bbd24094e116fc482ec Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 2 Sep 2021 23:13:01 +0200 Subject: [PATCH] megapixels: Fix schema compilation --- pkgs/applications/graphics/megapixels/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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}