mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:54:10 +00:00
eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, cargo, rustc, rustPlatform, pkgconfig, glib, openssl, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
version = "0.2.12";
|
|
pname = "sccache";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla";
|
|
repo = "sccache";
|
|
rev = version;
|
|
sha256 = "1yd3rfp032crwlmfn2p3z12f67q7bxm78fhvdlc7azm2a4hkif4k";
|
|
};
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "1bkglgrasyjyzjj9mwm32d3g3mg5yv74jj3zl7jf20dlq3rg3fh6";
|
|
|
|
cargoBuildFlags = [ "--features=all" ];
|
|
nativeBuildInputs = [
|
|
pkgconfig cargo rustc
|
|
];
|
|
buildInputs = [
|
|
openssl
|
|
] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
|
# Tests fail because of client server setup which is not possible inside the pure environment,
|
|
# see https://github.com/mozilla/sccache/issues/460
|
|
checkPhase = null;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Ccache with Cloud Storage";
|
|
homepage = https://github.com/mozilla/sccache;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|