mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-29 23:35:33 +03:00
commit
34224b95bf
@ -51,7 +51,12 @@ def _create_package_from_derivation(
|
||||
elif install_method == InstallMethod.symlink:
|
||||
target.mkdir(parents=True, exist_ok=True)
|
||||
for entry in os.listdir(dep.derivation):
|
||||
(target / Path(entry)).symlink_to(dep.derivation / Path(entry))
|
||||
if not (target / Path(entry)).exists():
|
||||
(target / Path(entry)).symlink_to(dep.derivation / Path(entry))
|
||||
else:
|
||||
logger.info(
|
||||
f"skipping: file {(target / Path(entry))} already exists."
|
||||
)
|
||||
|
||||
binaries = get_bins(dep)
|
||||
for name, rel_path in binaries.items():
|
||||
@ -61,7 +66,7 @@ def _create_package_from_derivation(
|
||||
class Passthrough(TypedDict):
|
||||
"""
|
||||
Wrapper class
|
||||
Holds global informations during recursion in <_make_folders_rec>
|
||||
Holds global information during recursion in <_make_folders_rec>
|
||||
"""
|
||||
|
||||
all_deps: dict[str, Dependency]
|
||||
|
Loading…
Reference in New Issue
Block a user