nixpkgs/pkgs/by-name/sc/sccache/package.nix

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

46 lines
1.1 KiB
Nix
Raw Normal View History

2024-01-11 09:37:43 +00:00
{ lib
, fetchFromGitHub
, rustPlatform
, pkg-config
, openssl
, stdenv
, darwin
2024-01-11 09:37:43 +00:00
}:
2019-06-22 11:16:59 +00:00
rustPlatform.buildRustPackage rec {
2024-10-03 21:00:31 +00:00
version = "0.8.2";
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}";
2024-10-03 21:00:31 +00:00
sha256 = "sha256-HqTPC7J3hf5+dcsWlqc/FR7ev3f6J4jxhDwgM4GxYww=";
2019-06-22 11:16:59 +00:00
};
2021-02-08 16:59:38 +00:00
2024-10-03 21:00:31 +00:00
cargoHash = "sha256-ZUdjdKUUrQCUjwTh+T61Wn5gle4kzAbi3P1LvkS+NfQ=";
2019-08-12 08:56:22 +00:00
2024-01-11 09:37:43 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
2024-01-11 09:39:57 +00:00
darwin.apple_sdk.frameworks.SystemConfiguration
2024-01-11 09:37:43 +00:00
];
2021-02-08 16:59:38 +00:00
2024-01-11 09:37:43 +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";
mainProgram = "sccache";
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;
};
}