2021-02-01 14:57:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
2020-12-20 20:58:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libschrift";
|
2022-02-26 14:01:20 +00:00
|
|
|
version = "0.10.1";
|
2020-12-20 20:58:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomolt";
|
|
|
|
repo = pname;
|
2022-02-26 14:01:20 +00:00
|
|
|
rev = "v" + version;
|
|
|
|
sha256 = "0fvji0z6z2al68p07w58l4hc29ds68v71h7z84vxiqhxnsgc0hlv";
|
2020-12-20 20:58:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace config.mk \
|
|
|
|
--replace "PREFIX = /usr/local" "PREFIX = $out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "libschrift.a" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-12-20 20:58:42 +00:00
|
|
|
homepage = "https://github.com/tomolt/libschrift";
|
|
|
|
description = "A lightweight TrueType font rendering library";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|