-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
44 lines (37 loc) · 985 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
42
43
44
{
description = "Heading for the Yocto Project Development Environment";
inputs = {
nixpkgs.url = "nixpkgs/release-22.05";
flake-utils.url = "github:numtide/flake-utils";
devshell = {
url = "github:numtide/devshell";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.devshell.overlay ];
};
gems = pkgs.bundlerEnv {
name = "book";
gemdir = ./.;
};
in
{
devShell = pkgs.devshell.mkShell {
name = "Heading for the Yocto Project Development Environment";
packages = with pkgs; [
bundix
gems
(lowPrio gems.wrappedRuby)
statix
# Avoid the need of installation in the host.
nix-direnv
];
};
}
);
}