2022-03-05 16:20:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, gi-docgen
|
2020-04-24 23:36:52 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, lcms2
|
2020-06-18 07:06:33 +00:00
|
|
|
, vala
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "babl";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.1.108";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://download.gimp.org/pub/babl/${lib.versions.majorMinor finalAttrs.version}/babl-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-Jt7+neqresTQ4HbKtJwqDW69DfDDH9IJklpfB+3uFHU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
patches = [
|
|
|
|
# Allow overriding path to dev output that will be hardcoded e.g. in pkg-config file.
|
|
|
|
./dev-prefix.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
gi-docgen
|
2020-04-24 23:36:52 +00:00
|
|
|
gobject-introspection
|
2020-06-18 07:06:33 +00:00
|
|
|
vala
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
lcms2
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dprefix-dev=${placeholder "dev"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Image pixel format conversion library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "babl";
|
2020-11-03 02:18:15 +00:00
|
|
|
homepage = "https://gegl.org/babl/";
|
2022-03-05 16:20:37 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/babl/-/blob/BABL_${lib.replaceStrings [ "." ] [ "_" ] version}/NEWS";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|