[Nix-dev] git-svn and subversion perl bindings ..

Andres Loeh andres.loeh at googlemail.com
Wed Jul 30 15:52:16 CEST 2008


Hi Marc.

On Wed, Jul 30, 2008 at 7:19 AM, Marc Weber <marco-oweber at gmx.de> wrote:
> Which is the best way to catch this case:
> You forget to enable perl bindings in subversion,
> you enable svnSupport in git and wonder why git-svn can't find all
> libraries..

My personal preference is to avoid assertions, and instead have
packages select the dependencies they really need. Assuming we
have a function

subversion = { perlBindings ? false } : ...

then git should just be

git = { stdenv , subversion , ... } :
    stdenv.mkDerivation {
      ...
      buildInputs = [ (subversion { perlBindings = true }) ... ];
      ...
    }

Cheers,
  Andres



More information about the nix-dev mailing list