FWIW there’s a shell function
stripHash which will already give you the basename back from the source file. This is what the default
unpackPhase uses when copying directories.
You can also make use of
I probably need to give some more context. The python dependencies in the Pipfile listed take a humongous amount of time to install due to pipenv falling back to compiling from source.
So I want to setup a derivation that only has as input the pipenv dependencies that should be re-used as long as possible.
Then a second derivation which has the pipenv derivation as build input would be added which contains the actual application logic which changes far more frequently.
So whitelisting just the two Pipfile’s is really what I want to do here.