-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (44 loc) · 1.25 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
description = "virtual environments";
inputs.devshell.url = "github:numtide/devshell";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
# inputs.nix-openwrt-imagebuilder.url = "github:astro/nix-openwrt-imagebuilder";
outputs = inputs@{ self, flake-parts, devshell, nixpkgs }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
devshell.flakeModule
];
systems = [
"riscv64-linux"
"aarch64-linux"
"i686-linux"
"x86_64-linux"
];
perSystem = { pkgs, ... }: rec {
devshells = {
default = {};
crosstool-ng = {
packages = [ ];
commands = [
{
category = "tools";
name = "ct-ng";
package = packages.crosstool-ng;
# help = packages.crosstool-ng.meta.descripton;
}
];
env = [
{
name = "LD_LIBRARY_PATH";
unset = true;
}
];
};
};
packages = {
crosstool-ng = pkgs.callPackage ./packages/crosstool-ng.nix { };
buildg = pkgs.callPackage ./packages/buildg.nix { };
};
};
};
}