summaryrefslogtreecommitdiff
path: root/libvpl.nix
blob: 1b7ec510d4056e05885cbaa47e307588a676dad9 (plain)
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
{ inputs }:
self: super: {
  libvpl =
    with super;
    stdenv.mkDerivation {
      name = "libvpl";
      version = "git";
      src = fetchGit {
        url = "https://github.com/intel/libvpl";
        ref = "main";
        #                  rev = "e71b1efc1263ae216569f62d018033ab5a850e00";
      };
      nativeBuildInputs = [
        cmake
        pkg-config
      ];
      buildInputs = with xorg; [
        libva
        libdrm
        libpciaccess
        libX11
        libxcb
        #self.libvpl-gpu
      ];
      cmakeFlags = [
        "-DBUILD_TOOLS=ON"
        "-DBUILD_DISPATCHER=ON"
        "-DBUILD_PREVIEW=ON"
        "-DBUILD_DISPATCHER_ONEVPL_EXPERIMENTAL=ON"
        "-DBUILD_TOOLS_ONEVPL_EXPERIMENTAL=ON"
      ];
    };
}