31 stdenv.mkDerivation (finalAttrs: {
32 pname = "libresprite";
35 src = fetchFromGitHub {
36 owner = "LibreSprite";
38 rev = "v${finalAttrs.version}";
39 fetchSubmodules = true;
40 hash = "sha256-piA/hLQqdfyVH4GPu5ElXZtowQL9AGaK7GhZOME4L0Q=";
65 # no v8 due to missing libplatform and libbase
67 ++ lib.optionals stdenv.hostPlatform.isDarwin [
74 "-DWITH_DESKTOP_INTEGRATION=ON"
75 "-DWITH_WEBP_SUPPORT=ON"
78 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "format";
80 # Install mime icons. Note that the mimetype is still "x-aseprite"
82 src="$out/share/libresprite/data/icons"
83 for size in 16 32 48 64; do
84 dst="$out"/share/icons/hicolor/"$size"x"$size"
85 install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png
90 libresprite-can-open-png = nixosTests.libresprite;
94 homepage = "https://libresprite.github.io/";
95 description = "Animated sprite editor & pixel art tool, fork of Aseprite";
96 license = lib.licenses.gpl2Only;
98 LibreSprite is a program to create animated sprites. Its main features are:
100 - Sprites are composed by layers & frames (as separated concepts).
101 - Supported color modes: RGBA, Indexed (palettes up to 256 colors), and Grayscale.
102 - Load/save sequence of PNG files and GIF animations (and FLC, FLI, JPG, BMP, PCX, TGA).
103 - Export/import animations to/from Sprite Sheets.
104 - Tiled drawing mode, useful to draw patterns and textures.
105 - Undo/Redo for every operation.
106 - Real-time animation preview.
107 - Multiple editors support.
108 - Pixel-art specific tools like filled Contour, Polygon, Shading mode, etc.
111 maintainers = with lib.maintainers; [ fgaz ];
112 platforms = lib.platforms.all;
113 # https://github.com/LibreSprite/LibreSprite/issues/308
114 broken = stdenv.hostPlatform.isDarwin;