39 lines
979 B
Nix
39 lines
979 B
Nix
|
{
|
||
|
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; };
|
||
|
};
|
||
|
}
|