From 501eb1fa23faa173a7f4f5c9f87993b840b1aeee Mon Sep 17 00:00:00 2001 From: Harry Ho Date: Fri, 8 Oct 2021 12:13:58 +0800 Subject: [PATCH] flake: add microscope --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0aa09d2b0..4cb3aea77 100644 --- a/flake.nix +++ b/flake.nix @@ -193,6 +193,18 @@ propagatedBuildInputs = with pkgs.python3Packages; [ migen misoc ]; }; + microscope = pkgs.python3Packages.buildPythonPackage rec { + pname = "microscope"; + version = "unstable-2020-12-28"; + src = pkgs.fetchFromGitHub { + owner = "m-labs"; + repo = "microscope"; + rev = "c21afe7a53258f05bde57e5ebf2e2761f3d495e4"; + sha256 = "sha256-jzyiLRuEf7p8LdhmZvOQj/dyQx8eUE8p6uRlwoiT8vg="; + }; + propagatedBuildInputs = with pkgs.python3Packages; [ pyserial prettytable msgpack migen ]; + }; + cargo-xbuild = rustPlatform.buildRustPackage rec { pname = "cargo-xbuild"; version = "0.6.5"; @@ -345,7 +357,7 @@ devShell.x86_64-linux = pkgs.mkShell { name = "artiq-dev-shell"; buildInputs = [ - (pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc jesd204b artiq ps.paramiko ps.jsonschema ])) + (pkgs.python3.withPackages(ps: with packages.x86_64-linux; [ migen misoc jesd204b artiq ps.paramiko ps.jsonschema microscope ])) rustPlatform.rust.rustc rustPlatform.rust.cargo cargo-xbuild