Commit a0a2fe7d authored by Markus Kowalewski's avatar Markus Kowalewski
Browse files

ucx: split outputs -> out, doc, dev

parent 71b60a7b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-VxIxrk9qKM6Ncfczl4p2EhXiLNgPaYTmjhqi6/w2ZNY=";
  };

  outputs = [ "out" "doc" "dev" ];

  nativeBuildInputs = [ autoreconfHook doxygen pkg-config ];

  buildInputs = [
@@ -51,6 +53,14 @@ stdenv.mkDerivation rec {
  ] ++ lib.optional enableCuda "--with-cuda=${cudatoolkit'}"
  ++ lib.optional enableRocm "--with-rocm=${rocm}";

  postInstall = ''
    find $out/lib/ -name "*.la" -exec rm -f \{} \;

    moveToOutput bin/ucx_info $dev

    moveToOutput share/ucx/examples $doc
  '';

  enableParallelBuilding = true;

  meta = with lib; {