about summary refs log tree commit diff
path: root/pkgs/applications/graphics/evilpixie/default.nix
blob: 9c5c7e81c3a766a3e12238e3f7b7eb936a11074b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, wrapQtAppsHook
, qtbase
, libpng
, giflib
, libjpeg
, impy
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "evilpixie";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "bcampbell";
    repo = "evilpixie";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-+DdAN+xDOYxLgLHUlr75piTEPrWpuOyXvxckhBEl7yU=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
    libpng
    giflib
    libjpeg
    impy
  ];

  meta = with lib; {
    description = "Pixel-oriented paint program, modelled on Deluxe Paint";
    mainProgram = "evilpixie";
    homepage = "https://github.com/bcampbell/evilpixie"; # http://evilpixie.scumways.com/ is gone
    downloadPage = "https://github.com/bcampbell/evilpixie/releases";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fgaz ];
    platforms = platforms.all;
    # Undefined symbols for architecture x86_64:
    # "_bundle_path", referenced from: App::SetupPaths() in src_app.cpp.o
    broken = stdenv.hostPlatform.isDarwin ||
    # https://github.com/bcampbell/evilpixie/issues/28
      stdenv.hostPlatform.isAarch64;
  };
})