1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 asmjit,
7}:
8
9stdenv.mkDerivation {
10 pname = "blend2d";
11 version = "0.12";
12
13 src = fetchFromGitHub {
14 owner = "blend2d";
15 repo = "blend2d";
16 rev = "717cbf4bc0f2ca164cf2f0c48f0497779241b6c5";
17 hash = "sha256-L3wDsjy0cocncZqKLy8in2yirrFJoqU3tFBfeBxlhs0=";
18 };
19
20 outputs = [
21 "out"
22 "dev"
23 ];
24
25 nativeBuildInputs = [ cmake ];
26
27 cmakeFlags = [ (lib.cmakeFeature "ASMJIT_DIR" (toString asmjit.src)) ];
28
29 meta = {
30 description = "2D Vector Graphics Engine Powered by a JIT Compiler";
31 homepage = "https://blend2d.com";
32 license = lib.licenses.zlib;
33 maintainers = with lib.maintainers; [ aleksana ];
34 platforms = lib.platforms.all;
35 };
36}