# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie # SPDX-License-Identifier: MIT { description = "zig-vp8 - VP8, the lossy bitstream inside a lossy WebP"; inputs = { nixpkgs = { url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; }; }; outputs = { self, nixpkgs, ... }: let inherit (nixpkgs) lib; makePackages = system: import nixpkgs { inherit system; }; forAllSystems = lib.genAttrs lib.systems.flakeExposed; in { packages = forAllSystems ( system: let pkgs = makePackages system; vp8 = pkgs.callPackage ./package.nix { }; in { inherit vp8; default = vp8; } ); # `nix flake check` builds the package, which runs `zig build test` as # its check phase. checks = forAllSystems (system: { vp8 = (makePackages system).callPackage ./package.nix { }; }); devShells = forAllSystems ( system: let pkgs = makePackages system; in { default = pkgs.mkShell { name = "zig-vp8"; nativeBuildInputs = [ pkgs.zig_0_17 pkgs.git-pages-cli pkgs.pinact pkgs.reuse ]; }; } ); }; }