about summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-6/modules/qtsvg.nix
blob: 2f2355bad598c39e0db4e5a296f0916541971cce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ qtModule
, qtbase
, libwebp
, jasper
, libmng
, zlib
, pkg-config
, fetchpatch2
}:

qtModule {
  pname = "qtsvg";
  qtInputs = [ qtbase ];
  buildInputs = [ libwebp jasper libmng zlib ];
  nativeBuildInputs = [ pkg-config ];
  patches = [
    # Fix nullptr dereference with invalid SVG
    # https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-117944
    (fetchpatch2 {
      name = "QTBUG-117944.patch";
      url = "https://code.qt.io/cgit/qt/qtsvg.git/patch/?id=edc8ca7f";
      hash = "sha256-kBQYlQqPb0QkRhatQyaGdxE1Y5zHd6/ZEd5zn0gRVoM=";
    })
  ];
}