Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 73 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, stdenv, buildPythonPackage, curl, cython, expat, fixDarwinDylibNames, klayout, libpng, qt6, setuptools, tomli, which, zlib,}:
buildPythonPackage { pname = "klayout"; pyproject = true;
inherit (klayout) version src;
build-system = [ cython setuptools tomli ];
nativeBuildInputs = [ qt6.wrapQtAppsHook which ] ++ # libpng-config is needed for the build on Darwin lib.optionals stdenv.hostPlatform.isDarwin [ (lib.getDev libpng) fixDarwinDylibNames ];
buildInputs = [ qt6.qtbase qt6.qtsvg qt6.qtmultimedia libpng curl expat zlib ];
env = { KLAYOUT_QT_VERSION = "6"; HAVE_QT6 = "1"; HAVE_PNG = "1"; HAVE_CURL = "1"; HAVE_EXPAT = "1"; HAVE_ZLIB = "1";
# Ensure that there is enough space for the `fixDarwinDylibNames` hook to # update the install names of the output dylibs. NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-headerpad_max_install_names"; };
pythonImportsCheck = [ "klayout" ];
meta = { description = "KLayout’s Python API"; homepage = "https://github.com/KLayout/klayout"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ fbeffa ]; platforms = lib.platforms.linux ++ lib.platforms.darwin; };}