2023-04-18 04:53:55 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchurl
|
|
|
|
|
, SDL
|
|
|
|
|
, SDL_image
|
|
|
|
|
, SDL_ttf
|
2023-11-30 03:04:47 +00:00
|
|
|
|
, installShellFiles
|
2023-04-18 04:53:55 +00:00
|
|
|
|
, fontconfig
|
|
|
|
|
, libpng
|
|
|
|
|
, libtiff
|
|
|
|
|
, lua5
|
|
|
|
|
, pkg-config
|
|
|
|
|
, zlib
|
|
|
|
|
}:
|
2013-11-21 10:19:56 +00:00
|
|
|
|
|
2023-11-30 03:04:47 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
|
pname = "grafx2";
|
2023-11-30 03:04:47 +00:00
|
|
|
|
version = "2.8.3091";
|
|
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
2013-11-21 10:19:56 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-11-30 03:04:47 +00:00
|
|
|
|
name = "grafx2-${finalAttrs.version}.tar.gz";
|
2023-04-18 04:53:55 +00:00
|
|
|
|
url = "https://pulkomandy.tk/projects/GrafX2/downloads/65";
|
|
|
|
|
hash = "sha256-KdY7GUhQp/Q7t/ktLPGxI66ZHy2gDAffn2yB5pmcJCM=";
|
2013-11-21 10:19:56 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-11-30 03:04:47 +00:00
|
|
|
|
postPatch = ''
|
|
|
|
|
substituteInPlace misc/unix/grafx2.desktop \
|
|
|
|
|
--replace "Exec=grafx2" "Exec=grafx2-sdl"
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
installShellFiles
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
|
|
|
|
|
2023-04-18 04:53:55 +00:00
|
|
|
|
buildInputs = [
|
|
|
|
|
SDL
|
|
|
|
|
SDL_image
|
|
|
|
|
SDL_ttf
|
|
|
|
|
fontconfig
|
|
|
|
|
libpng
|
|
|
|
|
libtiff
|
|
|
|
|
lua5
|
|
|
|
|
zlib
|
|
|
|
|
];
|
|
|
|
|
|
2023-11-30 03:04:47 +00:00
|
|
|
|
strictDeps = false; # Why??
|
|
|
|
|
|
2023-04-18 04:53:55 +00:00
|
|
|
|
makeFlags = [ "-C src" ];
|
|
|
|
|
installFlags = [ "-C src" "PREFIX=$(out)" ];
|
2013-11-30 11:03:34 +00:00
|
|
|
|
|
2023-11-30 03:04:47 +00:00
|
|
|
|
postInstall = ''
|
|
|
|
|
installManPage misc/unix/grafx2.1
|
|
|
|
|
'';
|
|
|
|
|
|
2013-11-21 10:19:56 +00:00
|
|
|
|
meta = {
|
2023-11-30 03:04:47 +00:00
|
|
|
|
homepage = "http://grafx2.eu/";
|
|
|
|
|
description = "Ultimate 256-color painting program";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
GrafX2 is a bitmap paint program inspired by the Amiga programs Deluxe
|
|
|
|
|
Paint and Brilliance. Specialized in 256-color drawing, it includes a very
|
|
|
|
|
large number of tools and effects that make it particularly suitable for
|
|
|
|
|
pixel art, game graphics, and generally any detailed graphics painted with
|
|
|
|
|
a mouse.
|
|
|
|
|
|
|
|
|
|
The program is mostly developed on Haiku, Linux and Windows, but is also
|
|
|
|
|
portable on many other platforms.
|
|
|
|
|
'';
|
|
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
2023-04-18 04:53:55 +00:00
|
|
|
|
mainProgram = "grafx2-sdl";
|
2023-11-30 03:04:47 +00:00
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
|
platforms = lib.platforms.unix;
|
2013-11-21 10:19:56 +00:00
|
|
|
|
};
|
2023-11-30 03:04:47 +00:00
|
|
|
|
})
|