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";