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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
978 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, stdenv, Security }:
2019-06-22 11:16:59 +00:00
rustPlatform.buildRustPackage rec {
version = "0.5.4";
2019-08-31 11:41:23 +00:00
pname = "sccache";
2019-06-22 11:16:59 +00:00
src = fetchFromGitHub {
owner = "mozilla";
repo = "sccache";
2021-02-08 16:59:38 +00:00
rev = "v${version}";
sha256 = "sha256-CaZM8c1dref98VL240PEUQE8XtWAvVlQSGnPQspg+jw=";
2019-06-22 11:16:59 +00:00
};
2021-02-08 16:59:38 +00:00
cargoSha256 = "sha256-F4lnE5ig3UnZJOdxpnGLesDP3rgEOFzZO0WGQ8mtj+o=";
2019-08-12 08:56:22 +00:00
2021-02-08 16:59:38 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
2019-06-22 11:16:59 +00: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 11:16:59 +00:00
meta = with lib; {
2019-06-22 11:16:59 +00:00
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 ];
2019-06-22 11:16:59 +00:00
license = licenses.asl20;
};
}