bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
28 lines
678 B
Nix
28 lines
678 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libschrift";
|
|
version = "0.10.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomolt";
|
|
repo = pname;
|
|
rev = "v" + version;
|
|
sha256 = "01hgvkcb46kr9jzc4ah0js0jy9kr0ll18j2k0c5zil55l3a9rqw1";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace config.mk \
|
|
--replace "PREFIX = /usr/local" "PREFIX = $out"
|
|
'';
|
|
|
|
makeFlags = [ "libschrift.a" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tomolt/libschrift";
|
|
description = "Lightweight TrueType font rendering library";
|
|
license = licenses.isc;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
};
|
|
}
|