depot/third_party/nixpkgs/pkgs/development/libraries/libschrift/default.nix
Default email aa526eb20f Project import generated by Copybara.
GitOrigin-RevId: fcd48a5a0693f016a5c370460d0c2a8243b882dc
2022-03-10 11:12:11 -08:00

28 lines
692 B
Nix

{ lib, stdenv, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec {
pname = "libschrift";
version = "0.10.1";
src = fetchFromGitHub {
owner = "tomolt";
repo = pname;
rev = "v" + version;
sha256 = "0fvji0z6z2al68p07w58l4hc29ds68v71h7z84vxiqhxnsgc0hlv";
};
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 ];
};
}