Skip to content

Commit

Permalink
nix: make flake.createOpenLane shell more ergonomic
Browse files Browse the repository at this point in the history
## Tool Updates
* `flake.createOpenLaneShell` now gets OpenLane from `python3.pkgs`.
* Fixed issue with `flake.createOpenLaneShell` where plugins would not get
  included due to an operator precedence issue.
  • Loading branch information
donn committed Oct 24, 2024
1 parent 8451508 commit 627a5ab
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
## Documentation
-->

# 2.2.1

This patch has no functional changes to OpenLane proper.

## Tool Updates
* `flake.createOpenLaneShell` now gets OpenLane from `python3.pkgs`.
* Fixed issue with `flake.createOpenLaneShell` where plugins would not get
included due to an operator precedence issue.

# 2.2.0

## CLI
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
devShells = nix-eda.forAllSystems (
system: let
pkgs = self.legacyPackages."${system}";
callPackage = lib.callPackageWith (pkgs // {inherit (self.legacyPackages."${system}".python3.pkgs) openlane;});
callPackage = lib.callPackageWith pkgs;
in {
# These devShells are rather unorthodox for Nix devShells in that they
# include the package itself. For a proper devShell, try .#dev.
Expand Down
2 changes: 1 addition & 1 deletion nix/create-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
include-openlane ? true
}: ({
lib,
openlane,
git,
zsh,
delta,
Expand All @@ -29,6 +28,7 @@
python3,
devshell,
}: let
openlane = python3.pkgs.openlane;
openlane-env = (
python3.withPackages (pp:
(if include-openlane then [openlane] else openlane.propagatedBuildInputs)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openlane"
version = "2.2.0"
version = "2.2.1"
description = "An infrastructure for implementing chip design flows"
authors = ["Efabless Corporation and Contributors <[email protected]>"]
readme = "Readme.md"
Expand Down

0 comments on commit 627a5ab

Please sign in to comment.