evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sc / sccache / package.nix
blobba6b44133fa51d92807ca9fe8fe5d422ba99f415
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , pkg-config
5 , openssl
6 , stdenv
7 , darwin
8 }:
10 rustPlatform.buildRustPackage rec {
11   version = "0.8.2";
12   pname = "sccache";
14   src = fetchFromGitHub {
15     owner = "mozilla";
16     repo = "sccache";
17     rev = "v${version}";
18     sha256 = "sha256-HqTPC7J3hf5+dcsWlqc/FR7ev3f6J4jxhDwgM4GxYww=";
19   };
21   cargoHash = "sha256-ZUdjdKUUrQCUjwTh+T61Wn5gle4kzAbi3P1LvkS+NfQ=";
23   nativeBuildInputs = [
24     pkg-config
25   ];
26   buildInputs = [
27     openssl
28   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
29     darwin.apple_sdk.frameworks.Security
30     darwin.apple_sdk.frameworks.SystemConfiguration
31   ];
33   # Tests fail because of client server setup which is not possible inside the
34   # pure environment, see https://github.com/mozilla/sccache/issues/460
35   doCheck = false;
37   meta = with lib; {
38     description = "Ccache with Cloud Storage";
39     mainProgram = "sccache";
40     homepage = "https://github.com/mozilla/sccache";
41     changelog = "https://github.com/mozilla/sccache/releases/tag/v${version}";
42     maintainers = with maintainers; [ doronbehar figsoda ];
43     license = licenses.asl20;
44   };