Add linien-server package #36
40
flake.nix
40
flake.nix
|
@ -68,6 +68,43 @@
|
||||||
runScript = "vivado";
|
runScript = "vivado";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pyrp3 = pkgs.python3Packages.buildPythonPackage rec {
|
||||||
|
pname = "pyrp3";
|
||||||
fsagbuya marked this conversation as resolved
Outdated
|
|||||||
|
version = "1.2.0";
|
||||||
|
pyproject = true;
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "linien-org";
|
||||||
|
repo = "${pname}";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-43TTlpJ5SMAjQM71bNVvrWQyciRXM3zpuA/Dw41AEgU=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = with pkgs.python3Packages; [ setuptools wheel setuptools-scm ];
|
||||||
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||||
|
myhdl
|
||||||
sb10q
commented
Looks wrong. Looks wrong.
fsagbuya
commented
It seems the myhdl dependency has not been dropped in any version in the linien fork. It seems the [myhdl dependency](https://github.com/linien-org/pyrp3/blob/v1.2.0/setup.py#L30) has not been dropped in any version in the linien fork.
sb10q
commented
Ah okay. It's used only for intbv in a few places (which could be replaced with simple bitwise arithmetic) and also in the original (non-linien) one. Looks like physicist code syndrome strikes again. Ah okay. It's used only for intbv in a few places (which could be replaced with simple bitwise arithmetic) and also in the original (non-linien) one. Looks like physicist code syndrome strikes again.
fsagbuya
commented
Will implement as suggested. Will implement as suggested.
|
|||||||
|
rpyc4
|
||||||
|
cached-property
|
||||||
|
numpy
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
linien-server = pkgs.python3Packages.buildPythonPackage rec {
|
||||||
|
pname = "linien-server";
|
||||||
|
pyproject = true;
|
||||||
|
inherit (pkgs.python3Packages.linien-common) src version;
|
||||||
|
sourceRoot = "source/linien-server";
|
||||||
fsagbuya marked this conversation as resolved
Outdated
sb10q
commented
As far as I can tell this is a required dependency. Removing it does not solve the problem. As far as I can tell this is a required dependency. Removing it does not solve the problem.
|
|||||||
|
nativeBuildInputs = [ pkgs.python3Packages.setuptools ];
|
||||||
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||||
|
appdirs
|
||||||
|
certifi
|
||||||
|
click
|
||||||
|
cma
|
||||||
|
pylpsd
|
||||||
|
pyrp3
|
||||||
|
requests
|
||||||
|
linien-common
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
not-os-configured = (import patched-not-os {
|
not-os-configured = (import patched-not-os {
|
||||||
inherit nixpkgs;
|
inherit nixpkgs;
|
||||||
extraModules = [
|
extraModules = [
|
||||||
|
@ -461,11 +498,10 @@
|
||||||
inherit migen misoc vivado;
|
inherit migen misoc vivado;
|
||||||
};
|
};
|
||||||
packages.armv7l-linux = {
|
packages.armv7l-linux = {
|
||||||
inherit fast-servo-gateware;
|
inherit fast-servo-gateware linien-server;
|
||||||
} //
|
} //
|
||||||
(board-package-set { board = "zc706"; }) //
|
(board-package-set { board = "zc706"; }) //
|
||||||
(board-package-set { board = "fast-servo"; });
|
(board-package-set { board = "fast-servo"; });
|
||||||
|
|
||||||
hydraJobs = packages.x86_64-linux // packages.armv7l-linux;
|
hydraJobs = packages.x86_64-linux // packages.armv7l-linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
inline