From 5c816474d0c8fa9aef2d518a03cdc406926f8902 Mon Sep 17 00:00:00 2001 From: Andreas Wendleder Date: Thu, 19 Feb 2026 19:25:05 +0100 Subject: [PATCH] librelane: improve derivation and add updateScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- pkgs/by-name/li/librelane/package.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/librelane/package.nix b/pkgs/by-name/li/librelane/package.nix index f37403654c4c..5860d70f4559 100644 --- a/pkgs/by-name/li/librelane/package.nix +++ b/pkgs/by-name/li/librelane/package.nix @@ -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";