-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathflake.nix
34 lines (32 loc) · 1.02 KB
/
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
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.11";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
mill-scale = {
url = "github:icewind1991/mill-scale";
inputs.flakelight.follows = "flakelight";
};
};
outputs = {mill-scale, ...}:
mill-scale ./. {
crossTargets = [
"x86_64-unknown-linux-musl"
"i686-unknown-linux-musl"
"armv7-unknown-linux-musleabihf"
"aarch64-unknown-linux-musl"
"x86_64-pc-windows-gnu"
];
extraPaths = [./test_data ./examples ./benches ./tests];
withOverlays = [(import ./nix/overlay.nix)];
packages = {
demostf-parser = pkgs: pkgs.demostf-parser;
demostf-parser-codegen-events = pkgs: pkgs.demostf-parser-codegen-events;
demostf-parser-codegen-props = pkgs: pkgs.demostf-parser-codegen-props;
demostf-parser-schema = pkgs: pkgs.demostf-parser-schema;
};
tools = pkgs: with pkgs; [bacon cargo-insta];
};
}