3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/sccache/default.nix

32 lines
990 B
Nix
Raw Normal View History

2021-02-08 16:59:38 +00:00
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
2019-06-22 12:16:59 +01:00
rustPlatform.buildRustPackage rec {
2021-02-08 16:59:38 +00:00
version = "0.2.15";
2019-08-31 12:41:23 +01:00
pname = "sccache";
2019-06-22 12:16:59 +01:00
src = fetchFromGitHub {
owner = "mozilla";
repo = "sccache";
2021-02-08 16:59:38 +00:00
rev = "v${version}";
sha256 = "1kygk7ilv7la36kv4jdn1ird7f3896wgr88kyqf0iagfqkzb2vsb";
2019-06-22 12:16:59 +01:00
};
2021-02-08 16:59:38 +00:00
cargoSha256 = "1cfdwf00jgwsv0f72427asid1xr57s56jk5xj489dgppvgy7wdbj";
2019-08-12 09:56:22 +01:00
cargoBuildFlags = lib.optionals (!stdenv.isDarwin) [ "--features=dist-client,dist-server" ];
2021-02-08 16:59:38 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin 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
2021-02-08 16:59:38 +00:00
doCheck = false;
2019-06-22 12:16:59 +01:00
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;
};
}