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

33 lines
969 B
Nix
Raw Normal View History

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