Unverified Commit 21c4ea19 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

sccache: add distributed features (dist-client, dist-server) (#433155)

parents 05580368 22b7bcb5
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -4,21 +4,27 @@
  rustPlatform,
  pkg-config,
  openssl,
  distributed ? false,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  version = "0.10.0";
  pname = "sccache";

  src = fetchFromGitHub {
    owner = "mozilla";
    repo = "sccache";
    rev = "v${version}";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-VEDMeRFQKNPS3V6/DhMWxHR7YWsCzAXTzp0lO+COl08=";
  };

  cargoHash = "sha256-1kfKBN4uRbU5LjbC0cLgMqoGnOSEAdC0S7EzXlfaDPo=";

  buildFeatures = lib.optionals distributed [
    "dist-client"
    "dist-server"
  ];

  nativeBuildInputs = [
    pkg-config
  ];
@@ -34,11 +40,11 @@ rustPlatform.buildRustPackage rec {
    description = "Ccache with Cloud Storage";
    mainProgram = "sccache";
    homepage = "https://github.com/mozilla/sccache";
    changelog = "https://github.com/mozilla/sccache/releases/tag/v${version}";
    changelog = "https://github.com/mozilla/sccache/releases/tag/v${finalAttrs.version}";
    maintainers = with lib.maintainers; [
      doronbehar
      figsoda
    ];
    license = lib.licenses.asl20;
  };
}
})