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