nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 desktop-file-utils,
6 desktopToDarwinBundle,
7 shared-mime-info,
8 ninja,
9 pkg-config,
10 libiconv,
11 libX11,
12 libXcursor,
13 libXext,
14 libXi,
15 freetype,
16 fontconfig,
17 libjpeg,
18 libpng,
19 libtiff,
20 libwebp,
21 zlib,
22}:
23
24stdenv.mkDerivation rec {
25 pname = "azpainter";
26 version = "3.0.12";
27
28 src = fetchFromGitLab {
29 owner = "azelpg";
30 repo = "azpainter";
31 rev = "v${version}";
32 hash = "sha256-cUq1UmS0k5eib0aJI1zOJbJRzErezfAAXOOIFrgUS6E=";
33 };
34
35 nativeBuildInputs = [
36 desktop-file-utils # for update-desktop-database
37 shared-mime-info # for update-mime-info
38 ninja
39 pkg-config
40 ]
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
42
43 buildInputs = [
44 libX11
45 libXcursor
46 libXext
47 libXi
48 freetype
49 fontconfig
50 libjpeg
51 libpng
52 libtiff
53 libwebp
54 zlib
55 ]
56 ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
57
58 preBuild = ''
59 cd build
60 '';
61
62 enableParallelBuilding = true;
63
64 meta = with lib; {
65 description = "Full color painting software for illustration drawing";
66 homepage = "http://azsky2.html.xdomain.jp/soft/azpainter.html";
67 license = licenses.gpl3Plus;
68 maintainers = with maintainers; [ dtzWill ];
69 platforms = with platforms; linux ++ darwin;
70 mainProgram = "azpainter";
71 };
72}