Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
distributed ? false,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
version = "0.10.0";
|
|
pname = "sccache";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla";
|
|
repo = "sccache";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-VEDMeRFQKNPS3V6/DhMWxHR7YWsCzAXTzp0lO+COl08=";
|
|
};
|
|
|
|
cargoHash = "sha256-1kfKBN4uRbU5LjbC0cLgMqoGnOSEAdC0S7EzXlfaDPo=";
|
|
|
|
buildFeatures = lib.optionals distributed [
|
|
"dist-client"
|
|
"dist-server"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
# 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 = {
|
|
description = "Ccache with Cloud Storage";
|
|
mainProgram = "sccache";
|
|
homepage = "https://github.com/mozilla/sccache";
|
|
changelog = "https://github.com/mozilla/sccache/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with lib.maintainers; [
|
|
doronbehar
|
|
figsoda
|
|
];
|
|
license = lib.licenses.asl20;
|
|
};
|
|
})
|