Skip to content

Commit

Permalink
Separate buildInputs and nativeBuildInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jan 4, 2024
1 parent 4e58244 commit e5191f7
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,18 @@
poetry2nix.defaultPoetryOverrides
];
};

# This is the final list of dependencies we need to build the project.
project_deps =
[
in {
devShells.default = pkgs.mkShellNoCC {
name = "labenv";
buildInputs = with pkgs; [
# Needed in DPI code
libelf
# Needed when running verilator with FST support
zlib
];
nativeBuildInputs = with pkgs; [
pythonEnv
]
++ (with pkgs; [

cmake
openocd
screen
Expand All @@ -69,17 +74,14 @@
gtkwave
srecord
openfpgaloader
libelf
zlib
# vivado

# Poetry tool not required, add for convience in case update is needed
poetry
]);
in {
devShells.default = pkgs.mkShell {
name = "labenv";
buildInputs = project_deps;

# By default mkShell adds non-interactive bash to PATH
bashInteractive
];
shellHook = ''
# FIXME This works on Ubuntu, may not on other distros. FIXME
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
Expand Down

0 comments on commit e5191f7

Please sign in to comment.