artiq: use new misoc for artiq-6
This commit is contained in:
parent
7b27d68841
commit
60e554c501
|
@ -1,7 +1,8 @@
|
||||||
{ pkgs ? import <nixpkgs> {}}:
|
{ pkgs ? import <nixpkgs> {}}:
|
||||||
with pkgs;
|
with pkgs;
|
||||||
let
|
let
|
||||||
pythonDeps = import ./pkgs/python-deps.nix { inherit (pkgs) stdenv fetchFromGitHub python3Packages; };
|
artiq6 = pkgs.lib.strings.versionAtLeast mainPackages.artiq.version "6.0";
|
||||||
|
pythonDeps = import ./pkgs/python-deps.nix { inherit (pkgs) stdenv fetchFromGitHub python3Packages; misoc-new = artiq6; };
|
||||||
|
|
||||||
boards = [
|
boards = [
|
||||||
{ target = "kasli"; variant = "tester"; }
|
{ target = "kasli"; variant = "tester"; }
|
||||||
|
@ -145,6 +146,6 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
condaWindows = if (pkgs.lib.strings.versionAtLeast mainPackages.artiq.version "6.0") then condaWindowsExperimental else condaWindowsLegacy;
|
condaWindows = if artiq6 then condaWindowsExperimental else condaWindowsLegacy;
|
||||||
in
|
in
|
||||||
boardPackages // mainPackages // condaNoarch // condaLinux // condaWindows
|
boardPackages // mainPackages // condaNoarch // condaLinux // condaWindows
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, python3Packages }:
|
{ stdenv, fetchFromGitHub, python3Packages, misoc-new }:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
# User dependencies
|
# User dependencies
|
||||||
|
@ -53,16 +53,24 @@ rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Development/firmware dependencies
|
# Development/firmware dependencies
|
||||||
misoc = python3Packages.buildPythonPackage rec {
|
misoc = python3Packages.buildPythonPackage {
|
||||||
name = "misoc";
|
name = "misoc";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = if misoc-new
|
||||||
owner = "m-labs";
|
then (fetchFromGitHub {
|
||||||
repo = "misoc";
|
owner = "m-labs";
|
||||||
rev = "7e5fe8d38835175202dad2c51d37b20b76fd9e16";
|
repo = "misoc";
|
||||||
sha256 = "0i8bppz7x2s45lx9n49c0r87pqps09z35yzc17amvx21qsplahxn";
|
rev = "9cad449a283d3b7a6e496afa523547df06e75829";
|
||||||
fetchSubmodules = true;
|
sha256 = "1fw3qfhaa435iv5qnvhhfwj29skhkj6yagr6ila9va9nb2zvklf5";
|
||||||
};
|
fetchSubmodules = true;
|
||||||
|
})
|
||||||
|
else (fetchFromGitHub {
|
||||||
|
owner = "m-labs";
|
||||||
|
repo = "misoc";
|
||||||
|
rev = "7e5fe8d38835175202dad2c51d37b20b76fd9e16";
|
||||||
|
sha256 = "0i8bppz7x2s45lx9n49c0r87pqps09z35yzc17amvx21qsplahxn";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
});
|
||||||
|
|
||||||
# TODO: fix misoc bitrot and re-enable tests
|
# TODO: fix misoc bitrot and re-enable tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
Loading…
Reference in New Issue