blob: 3a291fa2e65d7c2b5909ef7560ef2608ac37d4d9 (
plain)
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
|
{
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
in {
devShells."${system}".default = pkgs.mkShell {
buildInputs = with pkgs; [
ncurses
openssl
SDL2
];
nativeBuildInputs = with pkgs; [
bc
binutils
bison
flex
gcc
gcc-arm-embedded
gdb
gnumake
gtkwave
pkg-config
(python39.withPackages (py: [ py.numpy py.pillow py.matplotlib ]))
(quartus-prime-lite.override { supportedDevices = [ "Cyclone V" ]; })
verilator
];
shellHook = ''
# U-Boot
export CROSS_COMPILE=arm-none-eabi-
export MAKEFLAGS="AR=gcc-ar"
export CXXFLAGS="-O3 -flto $(pkg-config --cflags sdl2 ncursesw)"
export LDFLAGS="-O3 -flto $(pkg-config --libs sdl2 ncursesw)"
# <https://discourse.nixos.org/t/fonts-in-nix-installed-packages-on-a-non-nixos-system/5871/7>
export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
export FONTCONFIG_FILE="${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
'';
};
};
}
|