Merge pull request #330613 from tobim/pkgs/babl-cross

babl: fix cross
This commit is contained in:
Aleksana 2024-08-05 18:19:42 +08:00 committed by GitHub
commit 79e85cc8a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,6 +41,10 @@ stdenv.mkDerivation (finalAttrs: {
mesonFlags = [
"-Dprefix-dev=${placeholder "dev"}"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
# Docs are opt-out in native but opt-in in cross builds.
"-Dwith-docs=true"
"-Denable-gir=true"
];
postFixup = ''
@ -52,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
description = "Image pixel format conversion library";
mainProgram = "babl";
homepage = "https://gegl.org/babl/";
changelog = "https://gitlab.gnome.org/GNOME/babl/-/blob/BABL_${lib.replaceStrings [ "." ] [ "_" ] version}/NEWS";
changelog = "https://gitlab.gnome.org/GNOME/babl/-/blob/BABL_${replaceStrings [ "." ] [ "_" ] finalAttrs.version}/NEWS";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.unix;