gnu: Add gdstk.

* gnu/packages/electronics.scm (gdstk): New variable

Change-Id: I2237a54e85e0f8c866b1674b04d2c36b28174472
This commit is contained in:
Thomas Kramer 2026-01-24 16:32:32 +00:00
parent 43498d3ea1
commit 8da29f8d95

View file

@ -2203,6 +2203,36 @@ programming language, as well as evaluation board definitions and a System on
Chip toolkit.")
(license license:bsd-3)))
(define-public gdstk
(package
(name "gdstk")
(version "0.9.62")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/heitzmann/gdstk")
(commit (string-append "v" version))))
(sha256
(base32 "0q07g7h613yqszgs49vbnran3pz6yayc0hyisdnp4fi60cyzsz1l"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'build-examples
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "make" "examples")))))))
(inputs (list zlib qhull))
(home-page "https://heitzmann.github.io/gdstk/")
(synopsis "Library for creation and manipulation of GDSII files")
(description
"@code{gdstk} is a library for creation and manipulation of GDSII layout files
which are commonly used for @acronym{EDA, elecronic design automation} and chip design.")
(license license:boost1.0)))
(define-public python-klayout
(package
(name "python-klayout")