summary refs log tree commit diff
path: root/pkgs/development/libraries/libplacebo/default.nix
blob: cee6d3f1845bc03102f64fb35ed3dff7cd1986a9 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ stdenv
, fetchFromGitLab
, meson
, ninja
, pkgconfig
, vulkan-headers
, vulkan-loader
, shaderc
, glslang
, lcms2
}:

stdenv.mkDerivation rec {
  pname = "libplacebo";
  version = "1.29.1";

  src = fetchFromGitLab {
    domain = "code.videolan.org";
    owner = "videolan";
    repo = pname;
    rev = "v${version}";
    sha256 = "1ly5bwy0pwgvqigpaak8hnig5hksjwf0pzvj3mdv3j2f6f7ya2zz";
  };

  postPatch = "substituteInPlace meson.build --replace 1.29.0 1.29.1";

  nativeBuildInputs = [
    meson
    ninja
    pkgconfig
  ];

  buildInputs = [
    vulkan-headers
    vulkan-loader
    shaderc
    glslang
    lcms2
  ];

  meta = with stdenv.lib; {
    description = "Reusable library for GPU-accelerated video/image rendering primitives";
    homepage = "https://code.videolan.org/videolan/libplacebo";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ tadeokondrak ];
    platforms = platforms.all;
  };
}