mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
[Backport release-25.05] python3Packages.klayout: fix darwin build (#409732)
This commit is contained in:
commit
863399e14a
1 changed files with 9 additions and 1 deletions
|
@ -7,6 +7,8 @@
|
||||||
expat,
|
expat,
|
||||||
libpng,
|
libpng,
|
||||||
setuptools,
|
setuptools,
|
||||||
|
stdenv,
|
||||||
|
fixDarwinDylibNames,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -30,6 +32,12 @@ buildPythonPackage rec {
|
||||||
libpng
|
libpng
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# libpng-config is needed for the build on Darwin
|
||||||
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
libpng.dev
|
||||||
|
fixDarwinDylibNames
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "klayout" ];
|
pythonImportsCheck = [ "klayout" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -37,6 +45,6 @@ buildPythonPackage rec {
|
||||||
homepage = "https://github.com/KLayout/klayout";
|
homepage = "https://github.com/KLayout/klayout";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ fbeffa ];
|
maintainers = with maintainers; [ fbeffa ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue