@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitLab, meson, ninja, nasm }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "dav1d";
5+ version = "0.2.1";
6+
7+ src = fetchFromGitLab {
8+ domain = "code.videolan.org";
9+ owner = "videolan";
10+ repo = pname;
11+ rev = version;
12+ sha256 = "0diihk7lcdxxbfqp79dpvj14008zfzmayamh4vj310i524lqnkb6";
13+ };
14+
15+ nativeBuildInputs = [ meson ninja nasm ];
16+ # TODO: doxygen (currently only HTML and not build by default).
17+
18+ meta = with stdenv.lib; {
19+ description = "A cross-platform AV1 decoder focused on speed and correctness";
20+ longDescription = ''
21+ The goal of this project is to provide a decoder for most platforms, and
22+ achieve the highest speed possible to overcome the temporary lack of AV1
23+ hardware decoder. It supports all features from AV1, including all
24+ subsampling and bit-depth parameters.
25+ '';
26+ inherit (src.meta) homepage;
27+ license = licenses.bsd2;
28+ platforms = platforms.unix;
29+ maintainers = with maintainers; [ primeos ];
30+ };
31+}