-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
54 lines (51 loc) · 1.17 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
53
54
{
description = "l4re-scc flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [];
systems = [ "x86_64-linux" ];
perSystem = {
config,
self',
inputs',
pkgs,
system,
...
}: let
pkgsArm64 = pkgs.pkgsCross.aarch64-multiplatform;
in {
devShells.default = pkgsArm64.mkShell {
CROSS_COMPILE = "aarch64-unknown-linux-gnu-";
buildInputs = [
pkgs.ncurses
];
packages = [
# build
pkgs.gcc
#pkgsArm64.buildPackages.gcc9
pkgs.dialog
pkgs.gawk
pkgs.binutils
pkgs.pkg-config
pkgs.flex
pkgs.bison
pkgs.dtc
pkgs.ubootTools
pkgs.nasm
# run
pkgs.qemu
];
shellHook = ''
export L4RE_SCC_ROOT=$(git rev-parse --show-toplevel)
'';
};
};
flake = {};
};
nixConfig = {
bash-prompt-suffix = "dev: ";
};
}