Unverified Commit 966fc630 authored by Robert Hensing's avatar Robert Hensing Committed by Philip Taron
Browse files

tests.srcOnly: Work around duplication of attr on darwin

parent d93bb6f4
Loading
Loading
Loading
Loading
+21 −10
Original line number Diff line number Diff line
{
  lib,
  runCommand,
  srcOnly,
  hello,
@@ -32,7 +33,8 @@ let
      ;
  };
  helloDrvSimpleSrc = srcOnly helloDrvSimple;
  helloDrvSimpleSrcFreeform = srcOnly {
  helloDrvSimpleSrcFreeform = srcOnly (
    {
      inherit (helloDrvSimple)
        name
        pname
@@ -41,7 +43,16 @@ let
        patches
        stdenv
        ;
  };
    }
    # __impureHostDeps get duplicated in helloDrvSimpleSrc (on darwin)
    # This is harmless, but fails the test for what is arguably an
    # unrelated non-problem, so we just work around it here.
    # The inclusion of __impureHostDeps really shouldn't be required,
    # and should be removed from this test.
    // lib.optionalAttrs (helloDrvSimple ? __impureHostDeps) {
      inherit (helloDrvSimple) __impureHostDeps;
    }
  );

in