@@ -1,15 +1,41 @@
1−{ stdenv, fetchurl }:
1+{ stdenv
2+, fetchurl
3+, meson
4+, ninja
5+, pkgconfig
6+, gobject-introspection
7+, lcms2
8+}:
29
310stdenv.mkDerivation rec {
411 pname = "babl";
5− version = "0.1.66";
12+ version = "0.1.72";
13+
14+ outputs = [ "out" "dev" ];
615
716 src = fetchurl {
8− url = "https://ftp.gtk.org/pub/babl/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
9− sha256 = "0qx1dwbinxihwl2lmxi60qiqi402jlrdcnixx14kk6j88n9xi79n";
17+ url = "https://download.gimp.org/pub/babl/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
18+ sha256 = "0hkagjrnza77aasa1kss5hvy37ndm50y6i7hkdn2z8hzgc4i3qb4";
1019 };
1120
12− doCheck = true;
21+ patches = [
22+ # Apple linker does not know --version-script flag
23+ # https://gitlab.gnome.org/GNOME/babl/merge_requests/26
24+ ./fix-darwin.patch
25+ ];
26+
27+ nativeBuildInputs = [
28+ meson
29+ ninja
30+ pkgconfig
31+ gobject-introspection
32+ ];
33+
34+ buildInputs = [
35+ lcms2
36+ ];
37+
38+ doCheck = !stdenv.isDarwin;
1339
1440 meta = with stdenv.lib; {
1541 description = "Image pixel format conversion library";