Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 30 lines 978 B view raw
1{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, stdenv, Security }: 2 3rustPlatform.buildRustPackage rec { 4 version = "0.5.2"; 5 pname = "sccache"; 6 7 src = fetchFromGitHub { 8 owner = "mozilla"; 9 repo = "sccache"; 10 rev = "v${version}"; 11 sha256 = "sha256-CriVsjxbfe3iJ0FD9HAve3QunBt3rWkzWqQDuJcPR9A="; 12 }; 13 14 cargoSha256 = "sha256-/pr+YT0ZejF0EpxZUlUBS21crtuhE/M222kvLAXaoyU="; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; 18 19 # Tests fail because of client server setup which is not possible inside the pure environment, 20 # see https://github.com/mozilla/sccache/issues/460 21 doCheck = false; 22 23 meta = with lib; { 24 description = "Ccache with Cloud Storage"; 25 homepage = "https://github.com/mozilla/sccache"; 26 changelog = "https://github.com/mozilla/sccache/releases/tag/v${version}"; 27 maintainers = with maintainers; [ doronbehar figsoda ]; 28 license = licenses.asl20; 29 }; 30}