Merge pull request #113143 from SCOTT-HAMILTON/fontfor

fontfor: init at 0.3.1
This commit is contained in:
Sandro 2021-02-16 05:29:29 +01:00 committed by GitHub
commit 30d00e35d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, rustPlatform
, fetchFromGitHub
, cmake
, pkg-config
, expat
, fontconfig
, freetype
}:
rustPlatform.buildRustPackage rec {
pname = "fontfor";
version = "0.3.1";
src = fetchFromGitHub {
owner = "7sDream";
repo = "fontfor";
rev = "v${version}";
sha256 = "1b07hd41blwsnb91vh2ax9zigm4lh8n0i5man0cjmxhavvbfy12b";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
expat
fontconfig
freetype
];
cargoSha256 = "194c4knjfb3pnpvw3zl1srwx3q1jp6z78vzln0q2mk5nf0a35yy0";
meta = with lib; {
description = "Find fonts which can show a specified character and preview them in browser";
homepage = "https://github.com/7sDream/fontfor";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ shamilton ];
platforms = platforms.linux;
};
}

View File

@ -4253,6 +4253,8 @@ in
python = python2;
};
fontfor = callPackage ../tools/misc/fontfor { };
fontforge = lowPrio (callPackage ../tools/misc/fontforge {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
python = python3;