vs-overlay/flake.nix
Simon Bruder 9ae72167c4 flake.nix: Allow unfree packages
Some packages are unfree, since they are lacking a license. This
makes them usable via the package output of the flake. If you use the
overlay, the configuration from the nixpkgs instance using the overlay
will be respected.
2021-05-29 16:30:09 -06:00

25 lines
677 B
Nix

{
description = "vs-overlay";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
config.allowUnfree = true;
}
);
in
{
overlay = import ./default.nix;
packages = forAllSystems (system: {
inherit (nixpkgsFor.${system})
getnative
vapoursynthPlugins;
});
};
}