Listed below is the latest "flake.nix" file we tried.
{
inputs.artiq.url = "git+https://github.com/m-labs/artiq.git";
inputs.extrapkg.url = "git+https://git.m-labs.hk/M-Labs/artiq-extrapkg.git";
inputs.extrapkg.inputs.artiq.follows = "artiq";
outputs = { self, artiq, extrapkg }:
let
pkgs = artiq.inputs.nixpkgs.legacyPackages.x86_64-linux;
aqmain = artiq.packages.x86_64-linux;
aqextra = extrapkg.packages.x86_64-linux;
in {
defaultPackage.x86_64-linux = pkgs.buildEnv {
name = "artiq-env";
paths = [
# ========================================
# EDIT BELOW
# ========================================
(pkgs.python3.withPackages(ps: [
# List desired Python packages here.
aqmain.artiq
#aqextra.artiq-comtools
#ps.paramiko # needed if and only if flashing boards remotely (artiq_flash -H)
#aqextra.flake8-artiq
#ps.pandas
#ps.numpy
#ps.scipy
#ps.redis
#ps.paramiko
#ps.pyvisa
#ps.pyvisa-py
#ps.GitPython
#ps.influxdb-client
#ps.pip
#ps.scikitimage
#ps.numba
#(ps.matplotlib.override { enableQt = true; })
#ps.matplotlib
#ps.mysql-connector
#ps.bokeh
#ps.cirq
#ps.qiskit
#ps.websockets
]))
#aqextra.korad_ka3005p
#aqextra.novatech409b
# List desired non-Python packages here
#aqextra.device-db-kasli-stuttgart
#aqmain.device-db-kasli-stuttgart2a
#aqmain.device-db-kasli-stuttgart2b
pkgs.gtk3
aqmain.openocd-bscanspi # needed if and only if flashing boards
# Other potentially interesting packages from the NixOS package collection:
#pkgs.gtkwave
#pkgs.spyder
#pkgs.R
#pkgs.julia
# ========================================
# EDIT ABOVE
# ========================================
];
};
PYTHONPATH="/opt/ARTIQ:/opt/ARTIQ/repository:/opt/python/";
XDG_DATA_DIRS="${pkgs.gtk3}/share/gsettings-schemas/gtk+3-3.24.21";
LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib:/usr/local/lib/artiq_include/";
};
}
Next, the auto-generated "nix.lock" file, which corresponds to an earlier attempt where some additional stuff was uncommented in our "flake.nix" file. If I remember correctly, we included the listed python packages and the "aqextra" packages in the earlier attempt. This is visible in the lock file, but should hopefully not influence the "aqmain.artiq" logs.
{
"nodes": {
"artiq": {
"inputs": {
"artiq-comtools": "artiq-comtools",
"mozilla-overlay": "mozilla-overlay",
"nixpkgs": "nixpkgs_3",
"sipyco": "sipyco_2",
"src-migen": "src-migen",
"src-misoc": "src-misoc",
"src-pythonparser": "src-pythonparser"
},
"locked": {
"lastModified": 1652394239,
"narHash": "sha256-mQPKTxUCtKEoy6nU5Jv/b8pEncwb3+cO8mKWEWnaejo=",
"ref": "master",
"rev": "16393efa7c439932095ee007ca4d3ac5c1cb8df6",
"revCount": 8047,
"type": "git",
"url": "https://github.com/m-labs/artiq.git"
},
"original": {
"type": "git",
"url": "https://github.com/m-labs/artiq.git"
}
},
"artiq-comtools": {
"inputs": {
"nixpkgs": "nixpkgs",
"sipyco": "sipyco"
},
"locked": {
"lastModified": 1649124276,
"narHash": "sha256-l1+vk7cvj4cjl83wRx/y1Jwdds4e8xAzpxHrXusEZ5A=",
"owner": "m-labs",
"repo": "artiq-comtools",
"rev": "e2d85f2e51ecdac463da752ef754e59572f9e119",
"type": "github"
},
"original": {
"owner": "m-labs",
"repo": "artiq-comtools",
"type": "github"
}
},
"extrapkg": {
"inputs": {
"artiq": [
"artiq"
]
},
"locked": {
"lastModified": 1651810374,
"narHash": "sha256-2gSObimK9y/by3wHhH2RNgs3+wJrorPgTSDORzUAgrA=",
"ref": "master",
"rev": "2f8241dbc76a079e25559857ac9441de296b17c4",
"revCount": 22,
"type": "git",
"url": "https://git.m-labs.hk/M-Labs/artiq-extrapkg.git"
},
"original": {
"type": "git",
"url": "https://git.m-labs.hk/M-Labs/artiq-extrapkg.git"
}
},
"mozilla-overlay": {
"flake": false,
"locked": {
"lastModified": 1650459918,
"narHash": "sha256-sroCK+QJTmoXtcRkwZyKOP9iAYOPID2Bwdxn4GkG16w=",
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"rev": "e1f7540fc0a8b989fb8cf701dc4fd7fc76bcf168",
"type": "github"
},
"original": {
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1652559422,
"narHash": "sha256-jPVTNImBTUIFdtur+d4IVot6eXmsvtOcBm0TzxmhWPk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8b3398bc7587ebb79f93dfeea1b8c574d3c6dba1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1652559422,
"narHash": "sha256-jPVTNImBTUIFdtur+d4IVot6eXmsvtOcBm0TzxmhWPk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8b3398bc7587ebb79f93dfeea1b8c574d3c6dba1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1651514317,
"narHash": "sha256-1dVfhWpFPpBcaDKVoEvsiqBeozjGZLNfNY/u4jipbS4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9e49886b3d83d18ca59f66ec7b388315fa3d2e60",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1652559422,
"narHash": "sha256-jPVTNImBTUIFdtur+d4IVot6eXmsvtOcBm0TzxmhWPk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8b3398bc7587ebb79f93dfeea1b8c574d3c6dba1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"artiq": "artiq",
"extrapkg": "extrapkg"
}
},
"sipyco": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1651624017,
"narHash": "sha256-engReD8l4xzQQJP8BJ7gILUyA1KH5d60lexDVfnoiRM=",
"owner": "m-labs",
"repo": "sipyco",
"rev": "efda015e9994faf6cafc19b239d8e69ca4d26226",
"type": "github"
},
"original": {
"owner": "m-labs",
"repo": "sipyco",
"type": "github"
}
},
"sipyco_2": {
"inputs": {
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1651624017,
"narHash": "sha256-engReD8l4xzQQJP8BJ7gILUyA1KH5d60lexDVfnoiRM=",
"owner": "m-labs",
"repo": "sipyco",
"rev": "efda015e9994faf6cafc19b239d8e69ca4d26226",
"type": "github"
},
"original": {
"owner": "m-labs",
"repo": "sipyco",
"type": "github"
}
},
"src-migen": {
"flake": false,
"locked": {
"lastModified": 1650337393,
"narHash": "sha256-rm1SlFmF2ASz0vIy2nDEzGlyRw2oYNeJRr8Kh8Mg2Qc=",
"owner": "m-labs",
"repo": "migen",
"rev": "d4e3f34177c32f09904397179e6ed9c83175e528",
"type": "github"
},
"original": {
"owner": "m-labs",
"repo": "migen",
"type": "github"
}
},
"src-misoc": {
"flake": false,
"locked": {
"lastModified": 1649324486,
"narHash": "sha256-Mw/fQS3lHFvCm7L1k63joRkz5uyijQfywcOq+X2+o2s=",
"ref": "master",
"rev": "f1dc58d2b8c222ba41c25cee4301626625f46e43",
"revCount": 2420,
"submodules": true,
"type": "git",
"url": "https://github.com/m-labs/misoc.git"
},
"original": {
"submodules": true,
"type": "git",
"url": "https://github.com/m-labs/misoc.git"
}
},
"src-pythonparser": {
"flake": false,
"locked": {
"lastModified": 1628745371,
"narHash": "sha256-p6TgeeaK4NEmbhimEXp31W8hVRo4DgWmcCoqZ+UdN60=",
"owner": "m-labs",
"repo": "pythonparser",
"rev": "5413ee5c9f8760e95c6acd5d6e88dabb831ad201",
"type": "github"
},
"original": {
"owner": "m-labs",
"repo": "pythonparser",
"type": "github"
}
}
},
"root": "root",
"version": 7
}