vapoursynth-nix/flake.nix

39 lines
979 B
Nix
Raw Normal View History

2024-11-04 14:02:36 +01:00
{
description = "vapoursynth-nix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
nixConfig = {
allow-import-form-derivation = true;
extra-substituters = [
"https://cache.kyouma.net"
];
extra-trusted-public-keys = [
"cache.kyouma.net:Frjwu4q1rnwE/MnSTmX9yx86GNA/z3p/oElGvucLiZg="
];
};
outputs = { self, nixpkgs, ... }@inputs: let
inherit (nixpkgs) lib;
buildPlatforms = import ./lib/platforms.nix inputs;
eachSystem = uwu: lib.mapAttrs uwu buildPlatforms;
in {
packages = eachSystem (system: platform: let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
allowUnsupportedSystem = true;
allowBroken = true;
};
};
in lib.filterAttrs (_: pkg: lib.meta.availableOn platform pkg) (
import ./pkgs/default.nix { inherit pkgs lib; })
);
hydraJobs = { inherit (self) packages; };
};
}