2022-08-04 13:59:01 +08:00
|
|
|
{
|
|
|
|
inputs.artiq.url = "git+https://github.com/m-labs/artiq.git?ref=release-7";
|
|
|
|
outputs = { self, artiq }:
|
|
|
|
let
|
|
|
|
pkgs = artiq.inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
aqmain = artiq.packages.x86_64-linux;
|
|
|
|
in {
|
2022-08-11 16:23:25 +08:00
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
2022-08-04 13:59:01 +08:00
|
|
|
name = "aq6140-env";
|
2022-08-11 16:23:25 +08:00
|
|
|
buildInputs = [
|
2022-08-04 13:59:01 +08:00
|
|
|
(pkgs.python3.withPackages(ps: [
|
|
|
|
aqmain.artiq
|
|
|
|
ps.pyvisa ps.pyvisa-py ps.numpy
|
2022-08-11 16:23:25 +08:00
|
|
|
ps.pyqtgraph
|
2022-08-04 13:59:01 +08:00
|
|
|
]))
|
|
|
|
];
|
2022-08-11 16:23:25 +08:00
|
|
|
shellHook=
|
|
|
|
''
|
|
|
|
export QT_PLUGIN_PATH=${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.dev.qtPluginPrefix}
|
|
|
|
export QML2_IMPORT_PATH=${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.dev.qtQmlPrefix}
|
|
|
|
'';
|
2022-08-04 13:59:01 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|