mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
10e0ccbfa5
Diff: https://github.com/mozilla/sccache/compare/v0.7.2...v0.7.4 Changelog: https://github.com/mozilla/sccache/releases/tag/v0.7.4
31 lines
978 B
Nix
31 lines
978 B
Nix
{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, stdenv, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
version = "0.7.4";
|
|
pname = "sccache";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla";
|
|
repo = "sccache";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-r5Gev6tnaq8KY26Zl5aDxTomAFw3SPK3szrS4Kc14cI=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-4YeD4UxqhLRg2d2INbMAHrJBTlvuafrKEcjohBDx6CQ=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
|
|
|
# Tests fail because of client server setup which is not possible inside the pure environment,
|
|
# see https://github.com/mozilla/sccache/issues/460
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Ccache with Cloud Storage";
|
|
homepage = "https://github.com/mozilla/sccache";
|
|
changelog = "https://github.com/mozilla/sccache/releases/tag/v${version}";
|
|
maintainers = with maintainers; [ doronbehar figsoda ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|