1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 meson,
6 ninja,
7 pkg-config,
8 libsForQt5,
9 libpng,
10 giflib,
11 libjpeg,
12 impy,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "evilpixie";
17 version = "0.3.1";
18
19 src = fetchFromGitHub {
20 owner = "bcampbell";
21 repo = "evilpixie";
22 rev = "v${finalAttrs.version}";
23 sha256 = "sha256-+DdAN+xDOYxLgLHUlr75piTEPrWpuOyXvxckhBEl7yU=";
24 };
25
26 nativeBuildInputs = [
27 meson
28 ninja
29 pkg-config
30 libsForQt5.wrapQtAppsHook
31 ];
32
33 buildInputs = [
34 libsForQt5.qtbase
35 libpng
36 giflib
37 libjpeg
38 impy
39 ];
40
41 meta = with lib; {
42 description = "Pixel-oriented paint program, modelled on Deluxe Paint";
43 mainProgram = "evilpixie";
44 homepage = "https://github.com/bcampbell/evilpixie"; # http://evilpixie.scumways.com/ is gone
45 downloadPage = "https://github.com/bcampbell/evilpixie/releases";
46 license = licenses.gpl3Only;
47 maintainers = with maintainers; [ fgaz ];
48 platforms = platforms.all;
49 # Undefined symbols for architecture x86_64:
50 # "_bundle_path", referenced from: App::SetupPaths() in src_app.cpp.o
51 broken =
52 stdenv.hostPlatform.isDarwin
53 ||
54 # https://github.com/bcampbell/evilpixie/issues/28
55 stdenv.hostPlatform.isAarch64;
56 };
57})