depot/third_party/nixpkgs/pkgs/development/libraries/libschrift/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

28 lines
680 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 = "A lightweight TrueType font rendering library";
license = licenses.isc;
platforms = platforms.all;
maintainers = [ maintainers.sternenseemann ];
};
}