1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 10:56:56 +00:00
nixpkgs/pkgs/development/tools/misc/sccache/default.nix

44 lines
1 KiB
Nix
Raw Normal View History

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