-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
31 lines (30 loc) · 831 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
{
description = "SplashScreen Bevy lib";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
cranix.url = "github:Lemin-n/cranix";
crane.url = "github:ipetkov/crane";
fenix.url = "github:nix-community/fenix";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
} @ inputs:
# Iterate over Arm, x86 for MacOs 🍎 and Linux 🐧
flake-utils.lib.eachSystem (flake-utils.lib.defaultSystems) (
system: let
bevyLibBundle = import ./. {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
crane = inputs.crane.lib;
cranix = inputs.cranix.lib;
fenix = inputs.fenix.packages;
};
in {
inherit (bevyLibBundle) apps devShells;
}
);
}