During an installation of Package 1, which I’ll call foo
, I need to run bar
, Package 2, on a part of foo
’s contents effectively mutating the package at that point.
Here are the problems I have run into:
- I am unable to call my own
bar
during a modified call tofoo.nix
. - I am unable to make a
bar.nix
because yarn2nix doesn’t handlegit://
dependencies properly.
Here’s the flow of what I’m trying to do:
- Download
foo
’s tarball and extract it - Run
bar $out/some/path/in/foo
- Continue the installation of
foo
as normal
Special requirements:
-
bar
pulls from data inside of the JS project directory -
bar
needs to be updated its package.json updates, but if none occursfoo
in the new package should still update -
foo
is nonfree
How should I go about writing this? What parts of the nixpkg documentation should I be looking at?