Skip to content

Commit

Permalink
libresprite: 1.0 -> 1.1 (#356557)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz authored Nov 18, 2024
2 parents c209053 + 6fa830f commit dca9282
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion nixos/tests/libresprite.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
machine.wait_for_x()
machine.succeed("convert -font DejaVu-Sans +antialias label:'IT WORKS' image.png")
machine.execute("libresprite image.png >&2 &")
machine.wait_for_window("LibreSprite v${pkgs.libresprite.version}")
machine.wait_for_window("LibreSprite ${pkgs.libresprite.version}-dev")
machine.wait_for_text("IT WORKS")
machine.screenshot("screen")
'';
Expand Down
28 changes: 10 additions & 18 deletions pkgs/applications/editors/libresprite/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch

, cmake
, pkg-config
Expand All @@ -14,8 +13,9 @@
, libjpeg
, libpng
, libwebp
, libarchive
, pixman
, tinyxml
, tinyxml-2
, zlib
, SDL2
, SDL2_image
Expand All @@ -29,25 +29,16 @@

stdenv.mkDerivation (finalAttrs: {
pname = "libresprite";
version = "1.0";
version = "1.1";

src = fetchFromGitHub {
owner = "LibreSprite";
repo = "LibreSprite";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY=";
hash = "sha256-piA/hLQqdfyVH4GPu5ElXZtowQL9AGaK7GhZOME4L0Q=";
};

# Backport GCC 13 build fix
# FIXME: remove in next release
patches = [
(fetchpatch {
url = "https://github.com/LibreSprite/LibreSprite/commit/6ffe8472194bf5d0a73b4b2cd7f6804d3c80aa0c.patch";
hash = "sha256-5chXt0H+koofIspYsCJ7/eUxMGcCBVXJcXe3U/7F9Vc=";
})
];

nativeBuildInputs = [
cmake
pkg-config
Expand All @@ -62,8 +53,9 @@ stdenv.mkDerivation (finalAttrs: {
libjpeg
libpng
libwebp
libarchive
pixman
tinyxml
tinyxml-2
zlib
SDL2
SDL2_image
Expand Down Expand Up @@ -95,10 +87,10 @@ stdenv.mkDerivation (finalAttrs: {
libresprite-can-open-png = nixosTests.libresprite;
};

meta = with lib; {
meta = {
homepage = "https://libresprite.github.io/";
description = "Animated sprite editor & pixel art tool, fork of Aseprite";
license = licenses.gpl2Only;
license = lib.licenses.gpl2Only;
longDescription = ''
LibreSprite is a program to create animated sprites. Its main features are:
Expand All @@ -113,8 +105,8 @@ stdenv.mkDerivation (finalAttrs: {
- Pixel-art specific tools like filled Contour, Polygon, Shading mode, etc.
- Onion skinning.
'';
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
maintainers = with lib.maintainers; [ fgaz ];
platforms = lib.platforms.all;
# https://github.com/LibreSprite/LibreSprite/issues/308
broken = stdenv.hostPlatform.isDarwin;
};
Expand Down

0 comments on commit dca9282

Please sign in to comment.