librelane: improve derivation and add updateScript

- Add pythonRelaxDepsHook to fix click dependency relaxation
- Fix postInstall by ensuring destination directory exists before copying
- Add passthru.updateScript for automated updates

Co-authored-by: Gaétan Lepage <gaetan@glepage.com>
This commit is contained in:
Andreas Wendleder
2026-02-22 11:54:01 +01:00
co-authored by Gaétan Lepage
parent 0c9e01f6b5
commit 5c816474d0
+12 -2
View File
@@ -2,6 +2,7 @@
lib,
python3Packages,
fetchFromGitHub,
nix-update-script,
# nativeBuildInputs
makeWrapper,
@@ -65,8 +66,13 @@ python3Packages.buildPythonApplication (finalAttrs: {
];
postInstall = ''
cp -r librelane/scripts $out/${python3Packages.python.sitePackages}/librelane/
cp -r librelane/examples $out/${python3Packages.python.sitePackages}/librelane/
# Create the site-packages subdirectory for librelane
dest="$out/${python3Packages.python.sitePackages}/librelane"
mkdir -p "$dest"
# Copy scripts and examples from the source into the installation
cp -r librelane/scripts "$dest/"
cp -r librelane/examples "$dest/"
'';
postFixup = ''
@@ -86,6 +92,10 @@ python3Packages.buildPythonApplication (finalAttrs: {
}
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "ASIC implementation flow infrastructure";
homepage = "https://github.com/librelane/librelane";