Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.5 KiB
Nix
73 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gi-docgen,
|
|
gobject-introspection,
|
|
lcms2,
|
|
vala,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "babl";
|
|
version = "0.1.116";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"devdoc"
|
|
];
|
|
|
|
src = fetchurl {
|
|
url = "https://download.gimp.org/pub/babl/${lib.versions.majorMinor finalAttrs.version}/babl-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-UPrgaYZ8et4SWYiP8ePbhf7IbXCCUuU4W1pPOaeOxIM=";
|
|
};
|
|
|
|
patches = [
|
|
# Allow overriding path to dev output that will be hardcoded e.g. in pkg-config file.
|
|
./dev-prefix.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gi-docgen
|
|
gobject-introspection
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
lcms2
|
|
];
|
|
|
|
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 = ''
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
moveToOutput "share/doc" "$devdoc"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Image pixel format conversion library";
|
|
mainProgram = "babl";
|
|
homepage = "https://gegl.org/babl/";
|
|
changelog = "https://gitlab.gnome.org/GNOME/babl/-/blob/BABL_${
|
|
replaceStrings [ "." ] [ "_" ] finalAttrs.version
|
|
}/NEWS";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|