Commit 601c3752 authored by Kira Bruneau's avatar Kira Bruneau
Browse files

composable_kernel: revert split output workaround

parent 4e6190be
Loading
Loading
Loading
Loading
+67 −97
Original line number Diff line number Diff line
@@ -13,9 +13,7 @@
, gpuTargets ? [ ] # gpuTargets = [ "gfx803" "gfx900" "gfx1030" ... ]
}:

let
  # This is now over 3GB, to allow hydra caching we separate it
  ck = stdenv.mkDerivation (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
  pname = "composable_kernel";
  version = "unstable-2023-01-16";

@@ -85,32 +83,4 @@ let
    maintainers = teams.rocm.members;
    platforms = platforms.linux;
  };
  });

in stdenv.mkDerivation {
  inherit (ck) pname version outputs src passthru requiredSystemFeatures meta;

  dontUnpack = true;
  dontPatch = true;
  dontConfigure = true;
  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out
    cp -an ${ck}/* $out
  '' + lib.optionalString buildTests ''
    cp -a ${ck.test} $test
  '' + lib.optionalString buildExamples ''
    cp -a ${ck.example} $example
  '' + ''
    runHook postInstall
  '';

  # Fix paths
  preFixup = ''
    substituteInPlace $out/lib/cmake/composable_kernel/*.cmake \
      --replace "${ck}" "$out"
  '';
}
})