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

32 lines
979 B
Nix
Raw Normal View History

2021-02-08 17:59:38 +01:00
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
2019-06-22 13:16:59 +02:00
rustPlatform.buildRustPackage rec {
2021-02-08 17:59:38 +01:00
version = "0.2.15";
2019-08-31 13:41:23 +02:00
pname = "sccache";
2019-06-22 13:16:59 +02:00
src = fetchFromGitHub {
owner = "mozilla";
repo = "sccache";
2021-02-08 17:59:38 +01:00
rev = "v${version}";
sha256 = "1kygk7ilv7la36kv4jdn1ird7f3896wgr88kyqf0iagfqkzb2vsb";
2019-06-22 13:16:59 +02:00
};
2021-02-08 17:59:38 +01:00
cargoSha256 = "1f42cqaqnjwi9k4ihqil6z2dqh5dnf76x54gk7mndzkrfg3rl573";
2019-08-12 10:56:22 +02:00
2021-02-08 17:59:38 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
2021-11-16 01:40:33 +01:00
buildFeatures = lib.optionals (!stdenv.isDarwin) [ "dist-client" "dist-server" ];
2019-06-22 13:16:59 +02: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 17:59:38 +01:00
doCheck = false;
2019-06-22 13:16:59 +02:00
meta = with lib; {
2019-06-22 13:16:59 +02:00
description = "Ccache with Cloud Storage";
homepage = "https://github.com/mozilla/sccache";
2019-06-22 13:16:59 +02:00
maintainers = with maintainers; [ doronbehar ];
license = licenses.asl20;
};
}