Something went wrong. Try again.
VP8, the lossy bitstream inside a lossy WebP, for Zig.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us># SPDX-License-Identifier: MIT
{ lib, stdenv, zig_0_17,}:
stdenv.mkDerivation { pname = "zig-vp8";
# Taken from build.zig.zon so that the package version cannot drift from the # one the Zig package manager reports. version = let zon = builtins.readFile ./build.zig.zon; matched = builtins.match ''.*\.version = "([^"]+)".*'' zon; in if matched == null then throw "zig-vp8: no .version found in build.zig.zon" else builtins.head matched;
# Named rather than filtered, so that editing something outside this list -- # the flake, a scratch file, the README -- does not rebuild the package. src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./build.zig ./build.zig.zon ./src ./tools ./LICENSES ./README.md ./REUSE.toml ]; };
nativeBuildInputs = [ zig_0_17.hook ];
# No dependencies at all, so there is no package cache to hand in and no # build.zig.zon.nix to generate: this library is `std` and nothing else. doCheck = true;
meta = { description = "VP8, the lossy bitstream inside a lossy WebP"; longDescription = '' VP8 is a video codec, and a lossy WebP is one keyframe of it. This library is where a decoder for that keyframe is being written. What it reads today is the frame tag and the keyframe header, which give the coded dimensions without decoding anything -- enough for a reader to say how big a picture is for a file it is about to refuse. ''; homepage = "https://git.jcollie.dev/jeff/zig-vp8"; license = lib.licenses.mit; platforms = lib.platforms.all; };}