2019-02-14 15:29:42 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
2022-02-24 10:06:04 +08:00
|
|
|
with import <nixpkgs> {};
|
|
|
|
|
2019-02-14 15:29:42 +08:00
|
|
|
|
|
|
|
let
|
2022-02-24 10:06:04 +08:00
|
|
|
set-scratch-dir = ./set-scratch-dir.sh;
|
2019-07-03 20:26:30 +08:00
|
|
|
artiqpkgs = import ./default.nix { inherit pkgs; };
|
|
|
|
vivado = import ./vivado.nix { inherit pkgs; };
|
2022-02-24 10:06:04 +08:00
|
|
|
sipyco = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "sipyco";
|
|
|
|
version = "0.1";
|
|
|
|
src = /home/thomp/scratch/sipyco;
|
|
|
|
propagatedBuildInputs = [ pkgs.python3Packages.statsmodels ];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
artiq_tools = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "artiq_tools";
|
|
|
|
version = "0.2";
|
|
|
|
src = /home/thomp/scratch/artiq_tools;
|
|
|
|
propagatedBuildInputs = [ pkgs.python3Packages.numpy pkgs.python3Packages.typing artiqpkgs.artiq pkgs.python3Packages.pyzmq pkgs.python3Packages.matplotlib];
|
|
|
|
};
|
|
|
|
oitg = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "oitg";
|
|
|
|
version = "0.1";
|
|
|
|
src = /home/thomp/scratch/oitg;
|
|
|
|
propagatedBuildInputs = [ pkgs.python3Packages.statsmodels ];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
python_library = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "python_library";
|
|
|
|
version = "0.1";
|
|
|
|
src = /home/thomp/scratch/python-library;
|
|
|
|
propagatedBuildInputs = [ pkgs.python3Packages.numpy pkgs.python3Packages.scipy pkgs.python3Packages.matplotlib ];
|
|
|
|
};
|
|
|
|
strontium_library = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "strontium_library";
|
|
|
|
version = "0.1";
|
|
|
|
src = /home/thomp/scratch/strontium-library;
|
|
|
|
propagatedBuildInputs = [ pkgs.python3Packages.numpy pkgs.python3Packages.scipy pkgs.python3Packages.matplotlib pkgs.python3Packages.influxdb];
|
|
|
|
};
|
|
|
|
ndscan = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "ndscan";
|
|
|
|
version = "0.1";
|
|
|
|
src = /home/thomp/scratch/ndscan;
|
|
|
|
propagatedBuildInputs = [ artiqpkgs.artiq oitg];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
analysis_library = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "analysis_library";
|
|
|
|
version = "0.1";
|
|
|
|
src = /home/thomp/scratch/analysis-library;
|
|
|
|
propagatedBuildInputs = [ pkgs.python3Packages.h5py pkgs.python3Packages.matplotlib pkgs.python3Packages.scipy pkgs.python3Packages.numpy python_library strontium_library pkgs.python3Packages.uncertainties];
|
|
|
|
doCheck = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-02-14 15:29:42 +08:00
|
|
|
in
|
2019-07-03 20:26:30 +08:00
|
|
|
pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
vivado
|
2022-02-24 10:06:04 +08:00
|
|
|
sipyco
|
|
|
|
artiq_tools
|
|
|
|
analysis_library
|
|
|
|
python_library
|
|
|
|
strontium_library
|
|
|
|
ndscan
|
2019-07-03 20:26:30 +08:00
|
|
|
pkgs.gnumake
|
2021-01-15 16:36:48 +08:00
|
|
|
(pkgs.python3.withPackages(ps: (with ps; [ jinja2 jsonschema numpy paramiko ]) ++ (with artiqpkgs; [ migen microscope misoc jesd204b migen-axi artiq ])))
|
2022-02-24 10:06:04 +08:00
|
|
|
artiqpkgs.cargo
|
|
|
|
artiqpkgs.rustc
|
2019-07-03 20:26:30 +08:00
|
|
|
artiqpkgs.binutils-or1k
|
2019-08-25 09:27:12 +08:00
|
|
|
artiqpkgs.binutils-arm
|
2019-07-03 20:26:30 +08:00
|
|
|
artiqpkgs.llvm-or1k
|
|
|
|
artiqpkgs.openocd
|
|
|
|
];
|
2022-02-24 10:06:04 +08:00
|
|
|
shellHook = ''
|
|
|
|
source ${set-scratch-dir};
|
|
|
|
export PYTHONPATH="$scratch_dir/artiq_tools:$PYTHONPATH"
|
|
|
|
export PYTHONPATH="$scratch_dir/oitg:$PYTHONPATH"
|
|
|
|
export PYTHONPATH="$scratch_dir/analysis-library:$PYTHONPATH"
|
|
|
|
export PYTHONPATH="$scratch_dir/python-library:$PYTHONPATH"
|
|
|
|
export PYTHONPATH="$scratch_dir/strontium-library:$PYTHONPATH"
|
|
|
|
export PYTHONPATH="$scratch_dir/ndscan:$PYTHONPATH"
|
|
|
|
export PYTHONPATH="$scratch_dir/sipyco:$PYTHONPATH"
|
|
|
|
'';
|
2019-07-03 20:26:30 +08:00
|
|
|
TARGET_AR="or1k-linux-ar";
|
|
|
|
}
|