librelane: improve derivation and add updateScript (#492208)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user