Hi,
I have searched the internet about this issue but had no luck so far. Only useful hint that I found is to create a venv, but I thought this might be possible more straight forward.
Essentially I adopted the shell-dev.nix file from the artiq-fast repo for my nix shell and I want to add the pyDigitalWaveTools package to this shell.
Where do I put "pyDigitalWaveTools" in the file?
# main nix package manager
{ pkgs ? import <nixpkgs> {}}:
let
artiqpkgs = import ./artiq.nix { inherit pkgs; };
vivado = import ./vivado.nix { inherit pkgs; };
in
pkgs.mkShell {
buildInputs = [
vivado
pkgs.gnumake
(pkgs.python3.withPackages(
pyDigitalWaveTools <-- doesnt work syntax error
ps: (
with ps; [
# add your own python packages here
jinja2
jsonschema
numpy
paramiko
pyDigitalWaveTools <-- doesnt work, it says unknown variable
])
++ (
# python artiq packages
with artiqpkgs; [
migen
microscope
misoc
jesd204b
migen-axi
artiq
])
)
)
# non-python artiq packages, from above import
artiqpkgs.cargo
artiqpkgs.rustc
artiqpkgs.binutils-or1k
artiqpkgs.binutils-arm
artiqpkgs.llvm-or1k
artiqpkgs.openocd
];
# target architecture
TARGET_AR="or1k-linux-ar";
}
Thanks,
Jonas