-
Notifications
You must be signed in to change notification settings - Fork 17
/
flake.nix
41 lines (39 loc) · 928 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
description = "libmpv-darwin-build";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ flakelight, ... }:
flakelight ./. {
flakelight.builtinFormatters = false;
withOverlays = import ./nix/utils/default/overlays.nix;
nixpkgs.config = {
allowUnfree = true;
};
systems = [
"aarch64-darwin"
"x86_64-darwin"
];
devShell = pkgs: {
stdenv = pkgs.stdenvNoCC;
packages = [
pkgs.meson
pkgs.ninja
pkgs.pkg-config
];
};
perSystem =
{ pkgs, ... }:
{
packages = import ./nix/utils/flake/create-cross-packages.nix {
inherit pkgs;
path = ./nix/packages;
};
};
};
}