30 stdenv.mkDerivation (finalAttrs: {
31 pname = "libresprite";
34 src = fetchFromGitHub {
35 owner = "LibreSprite";
37 rev = "v${finalAttrs.version}";
38 fetchSubmodules = true;
39 hash = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY=";
42 # Backport GCC 13 build fix
43 # FIXME: remove in next release
46 url = "https://github.com/LibreSprite/LibreSprite/commit/6ffe8472194bf5d0a73b4b2cd7f6804d3c80aa0c.patch";
47 hash = "sha256-5chXt0H+koofIspYsCJ7/eUxMGcCBVXJcXe3U/7F9Vc=";
71 # no v8 due to missing libplatform and libbase
72 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
79 "-DWITH_DESKTOP_INTEGRATION=ON"
80 "-DWITH_WEBP_SUPPORT=ON"
83 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "format";
85 # Install mime icons. Note that the mimetype is still "x-aseprite"
87 src="$out/share/libresprite/data/icons"
88 for size in 16 32 48 64; do
89 dst="$out"/share/icons/hicolor/"$size"x"$size"
90 install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png
95 libresprite-can-open-png = nixosTests.libresprite;
99 homepage = "https://libresprite.github.io/";
100 description = "Animated sprite editor & pixel art tool, fork of Aseprite";
101 license = licenses.gpl2Only;
103 LibreSprite is a program to create animated sprites. Its main features are:
105 - Sprites are composed by layers & frames (as separated concepts).
106 - Supported color modes: RGBA, Indexed (palettes up to 256 colors), and Grayscale.
107 - Load/save sequence of PNG files and GIF animations (and FLC, FLI, JPG, BMP, PCX, TGA).
108 - Export/import animations to/from Sprite Sheets.
109 - Tiled drawing mode, useful to draw patterns and textures.
110 - Undo/Redo for every operation.
111 - Real-time animation preview.
112 - Multiple editors support.
113 - Pixel-art specific tools like filled Contour, Polygon, Shading mode, etc.
116 maintainers = with maintainers; [ fgaz ];
117 platforms = platforms.all;
118 # https://github.com/LibreSprite/LibreSprite/issues/308
119 broken = stdenv.hostPlatform.isDarwin;