24 # deps.nix is generated by ./update.sh
25 depSrcs = import ./deps.nix { inherit fetchgit; };
27 clangStdenv.mkDerivation (finalAttrs: {
28 pname = "skia-aseprite";
29 version = "m102-861e4743af";
31 src = fetchFromGitHub {
34 rev = finalAttrs.version;
35 hash = "sha256-IlZbalmHl549uDUfPG8hlzub8TLWhG0EsV6HVAPdsl0=";
44 preConfigure = with depSrcs; ''
45 mkdir -p third_party/externals
46 ln -s ${angle2} third_party/externals/angle2
47 ln -s ${dng_sdk} third_party/externals/dng_sdk
48 ln -s ${piex} third_party/externals/piex
49 ln -s ${sfntly} third_party/externals/sfntly
54 gn gen lib --args="is_debug=false is_official_build=true extra_cflags=[\"-I${harfbuzzFull.dev}/include/harfbuzz\"]"
74 ninja -C lib skia modules
82 # Glob will match all subdirs.
85 # All these paths are used in some way when building Aseprite.
86 cp -r --parents -t $out/ \
94 include/third_party/skcms/*.h \
96 modules/skshaper/include/*.h \
99 third_party/externals/angle2/include \
100 third_party/skcms/**/*.h
105 passthru.updateScript = [ ./update.sh ] ++ builtins.attrNames depSrcs;
108 description = "Complete 2D graphic library for drawing Text, Geometries, and Images (Aseprite's fork)";
109 homepage = "https://skia.org/";
110 downloadPage = "https://github.com/aseprite/skia";
111 license = lib.licenses.bsd3;
112 inherit (aseprite.meta) maintainers;
113 platforms = lib.platforms.all;