17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-ci0gq4rOQHBmFPvhXZseIlwnqAWd06/qg/i/luhV79s=";
28 cargoSha256 = "sha256-1sekLS+jhMeFJcW7pH/X8t28//xA+L54u81uKOo1kHE=";
30 buildInputs = [ llvmPackages.libclang expat freetype ]
31 ++ lib.optionals stdenv.isLinux [ libxcb ]
32 ++ lib.optionals stdenv.isDarwin [ AppKit CoreText Security ];
34 nativeBuildInputs = [ cmake pkg-config ]
35 ++ lib.optionals stdenv.isLinux [ python3 ];
37 LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
40 description = "Create beautiful image of your source code";
41 homepage = "https://github.com/Aloxaf/silicon";
42 license = with licenses; [ mit /* or */ asl20 ];
43 maintainers = with maintainers; [ evanjs ];