Closed milahu closed 5 months ago
nope, this only happens when i build scancode-toolkit
from git source
and i dont build the index in
scancode-toolkit-32.1.0/lib/python3.11/site-packages/licensedcode/data/cache/
scancode-toolkit/src/scancode_config.py
# we pre-build the index and bundle this with the the deployed release
# therefore we use package data
# .... but we accept this to be overriden with and env variable
std_license_cache_dir = join(scancode_src_dir, 'licensedcode', 'data', 'cache')
__env_license_cache_dir = os.getenv('SCANCODE_LICENSE_INDEX_CACHE')
licensedcode_cache_dir = (__env_license_cache_dir or std_license_cache_dir)
the scancode binary is not working
fix: pkgs/development/python-modules/scancode-toolkit/default.nix
this will not work because
$HOME
would be taken literally, and not be expandedping @fabaff @NickCao via https://github.com/NixOS/nixpkgs/pull/299314