forked from rvolosatovs/nixify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
38 lines (35 loc) · 1.11 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
35
36
37
38
{
description = "Simple, yet extensible nix flake bootstrapping library for real-world projects";
inputs.crane.inputs.flake-utils.follows = "flake-utils";
inputs.crane.inputs.nixpkgs.follows = "nixpkgs";
inputs.crane.inputs.rust-overlay.follows = "rust-overlay";
inputs.crane.url = github:ipetkov/crane/v0.10.0;
inputs.flake-utils.url = github:numtide/flake-utils;
inputs.nixlib.url = github:nix-community/nixpkgs.lib;
inputs.nixpkgs.url = github:nixos/nixpkgs/nixpkgs-22.05-darwin;
inputs.rust-overlay.inputs.flake-utils.follows = "flake-utils";
inputs.rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-overlay.url = github:oxalica/rust-overlay;
outputs = inputs: let
lib = import ./lib inputs;
in
with lib;
mkFlake {
withDevShells = {
pkgs,
devShells,
...
}:
extendDerivations {
buildInputs = with pkgs; [
wasmtime
];
}
devShells;
}
// {
inherit lib;
checks = import ./checks inputs;
templates = import ./templates inputs;
};
}