You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unblob is currently built using pkgs.python3.buildPythonApplication which provides CLI scripts to execute unblob. It however does not expose unblob as a python package, so it cannot be imported from an interpreter. For library usage, it should use pkgs.python3.builtPythonPackage. This part of the refactor is easy to make, but how would unblob has access to extractors when used as a library?
Currently, we wrap the unblob CLI using makeWrapper, where we add dependencies to PATH, so Python will pick them up when executed. We cannot really do this for the library use-case.
My idea is to add a "config file", where path to extractors could be easily set, and generate it from the Nix derivation. Alternatively, we could also just replace each Command("bin") invocation using string replacement, but it sounds waay too brittle for my taste.
The text was updated successfully, but these errors were encountered:
Unblob is currently built using
pkgs.python3.buildPythonApplication
which provides CLI scripts to execute unblob. It however does not exposeunblob
as a python package, so it cannot be imported from an interpreter. For library usage, it should usepkgs.python3.builtPythonPackage
. This part of the refactor is easy to make, but how would unblob has access to extractors when used as a library?Currently, we wrap the
unblob
CLI usingmakeWrapper
, where we add dependencies toPATH
, so Python will pick them up when executed. We cannot really do this for the library use-case.My idea is to add a "config file", where path to extractors could be easily set, and generate it from the Nix derivation. Alternatively, we could also just replace each
Command("bin")
invocation using string replacement, but it sounds waay too brittle for my taste.The text was updated successfully, but these errors were encountered: