sccache: remove platforms and fix darwin build

This commit is contained in:
Ben Siraphob 2021-03-22 19:36:47 +07:00
parent 64ed9a9a99
commit ebb6205c7a

View File

@ -13,7 +13,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1cfdwf00jgwsv0f72427asid1xr57s56jk5xj489dgppvgy7wdbj"; cargoSha256 = "1cfdwf00jgwsv0f72427asid1xr57s56jk5xj489dgppvgy7wdbj";
cargoBuildFlags = [ "--features=dist-client,dist-server" ]; cargoBuildFlags = lib.optionals (!stdenv.isDarwin) [ "--features=dist-client,dist-server" ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
@ -27,6 +27,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/mozilla/sccache"; homepage = "https://github.com/mozilla/sccache";
maintainers = with maintainers; [ doronbehar ]; maintainers = with maintainers; [ doronbehar ];
license = licenses.asl20; license = licenses.asl20;
platforms = [ "x86_64-linux" ];
}; };
} }