mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitLab
|
|
, desktop-file-utils, shared-mime-info, ninja, pkg-config
|
|
, libiconv
|
|
, libX11, libXcursor, libXext, libXi
|
|
, freetype, fontconfig
|
|
, libjpeg, libpng, libtiff, libwebp
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "azpainter";
|
|
version = "3.0.7";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "azelpg";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-RlsiN9pefpTYUh4M8j4Ty/Ipi9StoVcNcICd7QDirhI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils # for update-desktop-database
|
|
shared-mime-info # for update-mime-info
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libX11 libXcursor libXext libXi
|
|
freetype fontconfig
|
|
libjpeg libpng libtiff libwebp
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [ libiconv ];
|
|
|
|
preBuild = ''
|
|
cd build
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Full color painting software for illustration drawing";
|
|
homepage = "http://azsky2.html.xdomain.jp/soft/azpainter.html";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|