mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
silicon: 0.4.3 -> 0.5.1
This commit is contained in:
parent
454afc3a67
commit
7665c23d18
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user