2019-06-23 07:14:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cargo, rustc, rustPlatform, pkgconfig, glib, openssl, darwin }:
|
2019-06-22 12:16:59 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-02-25 07:12:47 +00:00
|
|
|
version = "0.2.13";
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "sccache";
|
2019-06-22 12:16:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = "sccache";
|
|
|
|
rev = version;
|
2020-02-25 07:12:47 +00:00
|
|
|
sha256 = "19z9fdkn3bnr8q33m66h2by6bs6kmhw3a2lq2n8bywmnhrjwhxpw";
|
2019-06-22 12:16:59 +01:00
|
|
|
};
|
2020-02-25 07:12:47 +00:00
|
|
|
cargoSha256 = "1pm7il0x7i9mqx4vsmkcs8nq0dqr5ck3x3x7la6k39igaxn9vkwz";
|
2019-08-12 09:56:22 +01:00
|
|
|
|
2019-06-22 12:16:59 +01:00
|
|
|
cargoBuildFlags = [ "--features=all" ];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig cargo rustc
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2019-06-23 07:14:26 +01:00
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2019-06-22 12:16:59 +01:00
|
|
|
# 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";
|
2020-02-25 07:12:47 +00:00
|
|
|
homepage = "https://github.com/mozilla/sccache";
|
2019-06-22 12:16:59 +01:00
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|