Description
Hi,
First, thank you very much for creating this library!
We have been using haskell.nix
for https://github.com/hasktorch/hasktorch for some time now, and it has improved our productivity quite a bit!
I've got a basic question, though, and I can't seem to figure it out.
Suppose I have two repositories with two cabal projects, A
and B
, where B
depends on A
.
Both projects are already using haskell.nix
and pretty much follow the cardano-skeleton
example (in particular, the two projects are A
, https://github.com/hasktorch/hasktorch, and B
, https://github.com/hasktorch/hasktorch-skeleton).
In order to fulfil the dependency in B
, I've added A
to the source-repository section of the cabal.project
file in B
(e.g., https://github.com/hasktorch/hasktorch-skeleton/blob/master/cabal.project).
Now, when I start a nix-shell
in B, cabal
will have to build A
fully before being able to do any work for B
. My questions is:
How can I make it such that the build of A
is part of building the nix-shell
environment, and how I can benefit from A
's cachix
cache when launching the shell?
I've looked around in https://github.com/input-output-hk if I can find any example of that, but to no avail.
Thanks,
Torsten