about summary refs log tree commit diff
path: root/pkgs/by-name/op/opentype-sanitizer
diff options
context:
space:
mode:
authorDan Callaghan <djc@djc.id.au>2023-11-26 09:19:10 +1100
committerDan Callaghan <djc@djc.id.au>2023-12-03 21:58:27 +1100
commit4b7e6a634143459bb379d8060fc914716405ea1a (patch)
tree30ecd23719ef95f25290d2a5f7892f03c16f16ba /pkgs/by-name/op/opentype-sanitizer
parent16fc4bb760b4156c1544c468b0f94ad683668bbf (diff)
opentype-sanitizer: init at 9.1.0
Diffstat (limited to 'pkgs/by-name/op/opentype-sanitizer')
-rw-r--r--pkgs/by-name/op/opentype-sanitizer/package.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/op/opentype-sanitizer/package.nix b/pkgs/by-name/op/opentype-sanitizer/package.nix
new file mode 100644
index 0000000000000..2e7e7e62180ee
--- /dev/null
+++ b/pkgs/by-name/op/opentype-sanitizer/package.nix
@@ -0,0 +1,44 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, freetype
+, gtest
+, lz4
+, meson
+, ninja
+, pkg-config
+, woff2
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "opentype-sanitizer";
+  version = "9.1.0";
+
+  src = fetchFromGitHub {
+    owner = "khaledhosny";
+    repo = "ots";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-gsNMPNPcfHyOgjJnIrJ5tLYHbCfIfTowEhcaGOUPb2Q=";
+  };
+
+  buildInputs = [
+    freetype
+    gtest
+    lz4
+    woff2
+  ];
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+  ];
+
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Sanitizing parser for OpenType fonts";
+    homepage = "https://github.com/khaledhosny/ots";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ danc86 ];
+  };
+})