3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/babl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, fetchpatch
, meson
, ninja
, pkg-config
, gobject-introspection
, lcms2
2020-06-11 19:43:40 +01:00
, vala
}:
stdenv.mkDerivation rec {
pname = "babl";
version = "0.1.90";
outputs = [ "out" "dev" ];
patches = [
# Fix darwin build
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/babl/-/commit/33b18e74c9589fd4d5507ab88bd1fb19c15965dd.patch";
sha256 = "bEjjOjHGTF55o1z31G9GNDqERxn/7vUuWZQYHosSEBQ=";
})
];
src = fetchurl {
url = "https://download.gimp.org/pub/babl/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-bi67Y283WBWI49AkmbPS9p+axz40omL0KRHX9ZBqkkM=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
2020-06-11 19:43:40 +01:00
vala
];
buildInputs = [
lcms2
];
meta = with lib; {
description = "Image pixel format conversion library";
2020-10-23 23:59:33 +01:00
homepage = "https://gegl.org/babl/";
changelog = "https://gitlab.gnome.org/GNOME/babl/-/blob/BABL_${lib.replaceStrings [ "." ] [ "_" ] version}/NEWS";
2020-10-23 23:59:33 +01:00
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ jtojnar ];
2017-03-11 03:15:02 +00:00
platforms = platforms.unix;
};
}