Merge pull request #195961 from 0x4A6F/master-silicon

silicon: 0.4.3 -> 0.5.1
This commit is contained in:
Mario Rodas 2022-10-14 23:06:47 -05:00 committed by GitHub
commit fbf69e4798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,22 +14,24 @@
, CoreText
, Security
, fira-code
, fontconfig
, harfbuzz
}:
rustPlatform.buildRustPackage rec {
pname = "silicon";
version = "0.4.3";
version = "0.5.1";
src = fetchFromGitHub {
owner = "Aloxaf";
repo = "silicon";
rev = "v${version}";
sha256 = "sha256-yhs9BEMMFUtptd0cLsaUW02QZVhztvn8cB0nUqPnO+Y=";
sha256 = "sha256-RuzaRJr1n21MbHSeHBt8CjEm5AwbDbvX9Nw5PeBTl+w=";
};
cargoSha256 = "sha256-tj5HPE9EGC7JQ3dyeMPPI0/3r/idrShqfbpnVuaEtDk=";
cargoSha256 = "sha256-q+CoXoNZOxDmEJ+q1vPWxBJsfHQiCxAMlCZo8C49aQA=";
buildInputs = [ llvmPackages.libclang expat freetype fira-code ]
buildInputs = [ llvmPackages.libclang expat freetype fira-code fontconfig harfbuzz ]
++ lib.optionals stdenv.isLinux [ libxcb ]
++ lib.optionals stdenv.isDarwin [ libiconv AppKit CoreText Security ];
@ -38,10 +40,14 @@ rustPlatform.buildRustPackage rec {
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
preCheck = ''
export HOME=$TMPDIR
'';
meta = with lib; {
description = "Create beautiful image of your source code";
homepage = "https://github.com/Aloxaf/silicon";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ evanjs ];
maintainers = with maintainers; [ evanjs _0x4A6F ];
};
}