File tree Expand file tree Collapse file tree 1 file changed +105
-0
lines changed
pkgs/by-name/li/librelane Expand file tree Collapse file tree 1 file changed +105
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ python3Packages ,
4+ fetchFromGitHub ,
5+ fetchpatch ,
6+
7+ # nativeBuildInputs
8+ makeWrapper ,
9+
10+ # dependencies
11+ pdk-ciel ,
12+
13+ # wrapper runtime dependencies
14+ abc-verifier ,
15+ klayout ,
16+ magic-vlsi ,
17+ netgen-vlsi ,
18+ openroad ,
19+ ruby ,
20+ verilator ,
21+ yosys ,
22+ } :
23+
24+ python3Packages . buildPythonApplication ( finalAttrs : {
25+ pname = "librelane" ;
26+ version = "3.0.0.dev47-unstable-2026-01-12" ;
27+ pyproject = true ;
28+
29+ src = fetchFromGitHub {
30+ owner = "librelane" ;
31+ repo = "librelane" ;
32+ rev = "b38f7d33a4fb9f5fb8b99715e9d6595c35df0d98" ;
33+ hash = "sha256-//gG1W6JWRJoZl1tPQmq3BwEGepXY0m4gWa/JmAvYDs=" ;
34+ } ;
35+
36+ patches = [
37+ ( fetchpatch {
38+ name = "fix-click-compatibility" ;
39+ url = "https://github.com/librelane/librelane/pull/844.patch" ;
40+ hash = "sha256-n8VDzvIlPp3mbuZQobxwYQWjCvftpob8op8vSt6d3NA=" ;
41+ } )
42+ ] ;
43+
44+ build-system = [
45+ python3Packages . poetry-core
46+ ] ;
47+
48+ nativeBuildInputs = [
49+ makeWrapper
50+ ] ;
51+
52+ pythonRelaxDeps = [
53+ "click"
54+ ] ;
55+
56+ dependencies = with python3Packages ; [
57+ click
58+ cloup
59+ deprecated
60+ httpx
61+ libparse-python
62+ lxml
63+ numpy
64+ pandas
65+ pdk-ciel
66+ psutil
67+ python3Packages . klayout
68+ pyyaml
69+ rapidfuzz
70+ rich
71+ semver
72+ tkinter
73+ yamlcore
74+ ] ;
75+
76+ postInstall = ''
77+ cp -r librelane/scripts $out/${ python3Packages . python . sitePackages } /librelane/
78+ cp -r librelane/examples $out/${ python3Packages . python . sitePackages } /librelane/
79+ '' ;
80+
81+ postFixup = ''
82+ wrapProgram $out/bin/librelane \
83+ --suffix PYTHONPATH : "$PYTHONPATH" \
84+ --prefix PATH : ${
85+ lib . makeBinPath [
86+ abc-verifier
87+ klayout
88+ magic-vlsi
89+ netgen-vlsi
90+ openroad
91+ ruby
92+ verilator
93+ yosys
94+ ]
95+ }
96+ '' ;
97+
98+ meta = {
99+ description = "ASIC implementation flow infrastructure" ;
100+ homepage = "https://github.com/librelane/librelane" ;
101+ license = lib . licenses . asl20 ;
102+ maintainers = [ lib . maintainers . gonsolo ] ;
103+ mainProgram = "librelane" ;
104+ } ;
105+ } )
You can’t perform that action at this time.
0 commit comments