blob: dd5867950e9ca74223b2b3abcdd5821fab2a1688 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
asmjit,
}:
stdenv.mkDerivation {
pname = "blend2d";
# Note: this is an outdated version for pdf4qt, but vcpkg also uses it
# See 'Commit Hashes' in https://blend2d.com/download.html for newest
# If the newest version is needed, we can rename this package.
version = "0.10";
src = fetchFromGitHub {
owner = "blend2d";
repo = "blend2d";
rev = "452d549751188b04367b5af46c040cb737f5f76c";
hash = "sha256-LDhnXsp/V1A3YqVyjBVaL7/V6Nhts/1E9hRhl2P293o=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [ (lib.cmakeFeature "ASMJIT_DIR" (toString asmjit.src)) ];
meta = {
description = "2D Vector Graphics Engine Powered by a JIT Compiler";
homepage = "https://blend2d.com";
license = lib.licenses.zlib;
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.all;
};
}
|