silicon: 0.4.3 -> 0.5.1

This commit is contained in:
0x4A6F 2022-10-14 13:37:23 +02:00
parent 454afc3a67
commit 7665c23d18
No known key found for this signature in database
GPG Key ID: 8DEDBA5BE07080E1

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,6 +40,10 @@ 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";