-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
32 lines (29 loc) · 1 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
{
description = "Nix development environment for Ziggurat";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
ziggurat-core.url = "github:runziggurat/ziggurat-core";
};
outputs = { nixpkgs, flake-utils, ziggurat-core, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
# You can define additional CI scripts here, e.g.
# scripts = {
# test-ignored = "cargo test --ignored";
# } // ziggurat-core.scripts;
scripts = {
check-crawler = "cargo check --features=crawler";
} // ziggurat-core.scripts;
in
{
devShells.default = pkgs.mkShell {
# Enter additional build dependencies here.
buildInputs = [ ]
# Contains all the necessities.
++ ziggurat-core.buildInputs.${system}
++ (ziggurat-core.lib.${system}.mkCiScripts scripts);
};
});
}