Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: README.md
*.lock
*.md
*.md*
data/*
doc/*
sw/cheri/sim_boot_stub/sim_boot_stub
Expand Down
146 changes: 28 additions & 118 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 31 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@
url = "git+https://codeberg.org/HU90m/mdutils.git";
inputs.nixpkgs.follows = "nixpkgs";
};
poetry2nix = {
url = "github:nix-community/poetry2nix";
uv2nix = {
url = "github:pyproject-nix/uv2nix";
inputs.pyproject-nix.follows = "pyproject-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
pyproject-nix = {
url = "github:pyproject-nix/pyproject.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
pyproject-build-systems = {
url = "github:pyproject-nix/build-system-pkgs";
inputs.nixpkgs.follows = "nixpkgs";
inputs.pyproject-nix.follows = "pyproject-nix";
inputs.uv2nix.follows = "uv2nix";
};
zermio = {
url = "github:engdoreis/zermio?ref=v0.2.0";
Expand Down Expand Up @@ -52,18 +62,24 @@
inherit (pkgs.lib) fileset getExe;
zermio-cli = inputs.zermio.packages.${system}.default;

pythonEnv = let
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix {inherit pkgs;};
poetryOverrides = lowrisc-nix.lib.poetryOverrides {inherit pkgs;};
in
poetry2nix.mkPoetryEnv {
projectDir = ./.;
workspace = inputs.uv2nix.lib.workspace.loadWorkspace {workspaceRoot = ./.;};
overlay = workspace.mkPyprojectOverlay {
sourcePreference = "wheel";
};

pythonSet =
(pkgs.callPackage inputs.pyproject-nix.build.packages {
python = pkgs.python310;
overrides = [
poetryOverrides
poetry2nix.defaultPoetryOverrides
];
};
}).overrideScope
(
pkgs.lib.composeManyExtensions [
inputs.pyproject-build-systems.overlays.default
overlay
(lowrisc-nix.lib.pyprojectOverrides {inherit pkgs;})
]
);

pythonEnv = pythonSet.mkVirtualEnv "python-env" workspace.deps.default;

sonata-documentation = lrDoc.buildMdbookSite {
version = "";
Expand Down Expand Up @@ -183,6 +199,7 @@
gtkwave
openfpgaloader
openocd
uv
])
++ cheriotPkgs
++ (with lrPkgs; [
Expand Down
Loading
Loading