nixpkgs/pkgs/development/tools/misc/sccache/default.nix

44 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, cargo
, rustc
, rustPlatform
, pkg-config
, glib
, openssl
, darwin
}:
2019-06-22 04:16:59 -07:00
rustPlatform.buildRustPackage rec {
2020-12-25 23:39:41 -08:00
version = "0.2.14";
2019-08-31 04:41:23 -07:00
pname = "sccache";
2019-06-22 04:16:59 -07:00
src = fetchFromGitHub {
owner = "mozilla";
repo = "sccache";
rev = version;
2020-12-25 23:39:41 -08:00
sha256 = "1ahg3cpb9pbgpdjglnfxm5c8r8qrgwaxwz5s394478ix7f9dxind";
2019-06-22 04:16:59 -07:00
};
2020-12-25 23:39:41 -08:00
cargoSha256 = "0jphs0frr399iywi9ch8g271igayzv1vi3wa4v3yx19xdxawlgda";
2019-08-12 01:56:22 -07:00
2019-06-22 04:16:59 -07:00
cargoBuildFlags = [ "--features=all" ];
nativeBuildInputs = [
pkg-config cargo rustc
2019-06-22 04:16:59 -07:00
];
buildInputs = [
openssl
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2019-06-22 04:16:59 -07: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 lib; {
2019-06-22 04:16:59 -07:00
description = "Ccache with Cloud Storage";
homepage = "https://github.com/mozilla/sccache";
2019-06-22 04:16:59 -07:00
maintainers = with maintainers; [ doronbehar ];
license = licenses.asl20;
platforms = platforms.unix;
};
}