nix-helpers: 3b1ecf2f8bba12c7ffae717bdbbdbfb1ecdf9383

     1: # Add extra dependencies to a derivation; for example, if we only want a
     2: # build to succeed if some external tests pass. This version allows the name to
     3: # be overridden too, e.g. so we can add a test suite to "foo-untested" and
     4: # rename it to "foo". The "withDeps" function avoids renaming.
     5: 
     6: { lib }:
     7: 
     8: with lib;
     9: name: deps: drv:
    10: overrideDerivation drv (
    11:   old:
    12:   (if name == null then { } else { inherit name; })
    13:   // {
    14:     extraDeps = (old.extraDeps or [ ]) ++ deps;
    15:   }
    16: )

Generated by git2html.