libresprite: init at 1.0

+109
+105
pkgs/applications/editors/libresprite/default.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + 5 + , cmake 6 + , pkg-config 7 + , ninja 8 + , gtest 9 + 10 + , curl 11 + , freetype 12 + , giflib 13 + , libjpeg 14 + , libpng 15 + , libwebp 16 + , pixman 17 + , tinyxml 18 + , zlib 19 + , SDL2 20 + , SDL2_image 21 + , lua 22 + , AppKit 23 + , Cocoa 24 + , Foundation 25 + }: 26 + 27 + stdenv.mkDerivation rec { 28 + pname = "libresprite"; 29 + version = "1.0"; 30 + 31 + src = fetchFromGitHub { 32 + owner = "LibreSprite"; 33 + repo = "LibreSprite"; 34 + rev = "v${version}"; 35 + fetchSubmodules = true; 36 + sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY="; 37 + }; 38 + 39 + nativeBuildInputs = [ 40 + cmake 41 + pkg-config 42 + ninja 43 + gtest 44 + ]; 45 + 46 + buildInputs = [ 47 + curl 48 + freetype 49 + giflib 50 + libjpeg 51 + libpng 52 + libwebp 53 + pixman 54 + tinyxml 55 + zlib 56 + SDL2 57 + SDL2_image 58 + lua 59 + # no v8 due to missing libplatform and libbase 60 + ] ++ lib.optionals stdenv.isDarwin [ 61 + AppKit 62 + Cocoa 63 + Foundation 64 + ]; 65 + 66 + cmakeFlags = [ 67 + "-DWITH_DESKTOP_INTEGRATION=ON" 68 + "-DWITH_WEBP_SUPPORT=ON" 69 + ]; 70 + 71 + hardeningDisable = lib.optional stdenv.isDarwin "format"; 72 + 73 + # Install mime icons. Note that the mimetype is still "x-aseprite" 74 + postInstall = '' 75 + src="$out/share/libresprite/data/icons" 76 + for size in 16 32 48 64; do 77 + dst="$out"/share/icons/hicolor/"$size"x"$size" 78 + install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png 79 + done 80 + ''; 81 + 82 + meta = with lib; { 83 + homepage = "https://libresprite.github.io/"; 84 + description = "Animated sprite editor & pixel art tool, fork of Aseprite"; 85 + license = licenses.gpl2Only; 86 + longDescription = 87 + ''LibreSprite is a program to create animated sprites. Its main features are: 88 + 89 + - Sprites are composed by layers & frames (as separated concepts). 90 + - Supported color modes: RGBA, Indexed (palettes up to 256 colors), and Grayscale. 91 + - Load/save sequence of PNG files and GIF animations (and FLC, FLI, JPG, BMP, PCX, TGA). 92 + - Export/import animations to/from Sprite Sheets. 93 + - Tiled drawing mode, useful to draw patterns and textures. 94 + - Undo/Redo for every operation. 95 + - Real-time animation preview. 96 + - Multiple editors support. 97 + - Pixel-art specific tools like filled Contour, Polygon, Shading mode, etc. 98 + - Onion skinning. 99 + ''; 100 + maintainers = with maintainers; [ fgaz ]; 101 + platforms = platforms.all; 102 + # https://github.com/LibreSprite/LibreSprite/issues/308 103 + broken = stdenv.isDarwin && stdenv.isAarch64; 104 + }; 105 + }
+4
pkgs/top-level/all-packages.nix
··· 26421 }); 26422 libreoffice-still-unwrapped = libreoffice-still.libreoffice; 26423 26424 libvmi = callPackage ../development/libraries/libvmi { }; 26425 26426 libutp = callPackage ../applications/networking/p2p/libutp { };
··· 26421 }); 26422 libreoffice-still-unwrapped = libreoffice-still.libreoffice; 26423 26424 + libresprite = callPackage ../applications/editors/libresprite { 26425 + inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation; 26426 + }; 26427 + 26428 libvmi = callPackage ../development/libraries/libvmi { }; 26429 26430 libutp = callPackage ../applications/networking/p2p/libutp { };