nixpkgs/pkgs/by-name/az/azpainter/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.3 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitLab,
desktop-file-utils,
2024-10-15 14:46:24 +00:00
desktopToDarwinBundle,
shared-mime-info,
ninja,
pkg-config,
libiconv,
libX11,
libXcursor,
libXext,
libXi,
freetype,
fontconfig,
libjpeg,
libpng,
libtiff,
libwebp,
zlib,
2019-08-17 00:18:08 +00:00
}:
stdenv.mkDerivation rec {
pname = "azpainter";
2024-10-15 09:28:34 +00:00
version = "3.0.9a";
2019-08-17 00:18:08 +00:00
src = fetchFromGitLab {
owner = "azelpg";
2019-08-17 00:18:08 +00:00
repo = pname;
2020-04-26 12:11:09 +00:00
rev = "v${version}";
2024-10-15 09:28:34 +00:00
hash = "sha256-QWXlRbCGDk1DRtePeDM3tnbtkdlhbkn/oNTqHvmtEA4=";
2019-08-17 00:18:08 +00:00
};
nativeBuildInputs = [
desktop-file-utils # for update-desktop-database
shared-mime-info # for update-mime-info
2023-01-08 18:49:19 +00:00
ninja
pkg-config
2024-10-15 14:46:24 +00:00
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
2019-08-17 00:18:08 +00:00
buildInputs = [
libX11
libXcursor
libXext
libXi
freetype
fontconfig
libjpeg
libpng
libtiff
libwebp
2019-08-17 00:18:08 +00:00
zlib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
2023-01-08 18:49:19 +00:00
preBuild = ''
cd build
'';
enableParallelBuilding = true;
2019-08-17 00:18:08 +00:00
meta = with lib; {
2019-08-17 00:18:08 +00:00
description = "Full color painting software for illustration drawing";
homepage = "http://azsky2.html.xdomain.jp/soft/azpainter.html";
2019-08-17 00:18:08 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dtzWill ];
2020-04-26 12:11:09 +00:00
platforms = with platforms; linux ++ darwin;
2024-02-11 02:19:15 +00:00
mainProgram = "azpainter";
2019-08-17 00:18:08 +00:00
};
}