2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, SDL, SDL_image, SDL_ttf, zlib, libpng, pkg-config, lua5 }:
|
2013-11-21 10:19:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
version = "2.4.2035";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "grafx2";
|
2013-11-21 10:19:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://grafx2.googlecode.com/files/${pname}-${version}-src.tgz";
|
2013-11-21 10:19:56 +00:00
|
|
|
sha256 = "0svsy6rqmdj11b400c242i2ixihyz0hds0dgicqz6g6dcgmcl62q";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ SDL SDL_image SDL_ttf libpng zlib lua5 ];
|
2013-11-21 10:19:56 +00:00
|
|
|
|
2013-11-23 08:44:49 +00:00
|
|
|
preBuild = "cd src";
|
2013-11-21 10:19:56 +00:00
|
|
|
|
2013-11-24 15:59:23 +00:00
|
|
|
preInstall = '' mkdir -p "$out" '';
|
2013-11-21 10:19:56 +00:00
|
|
|
|
2013-11-30 11:03:34 +00:00
|
|
|
installPhase = ''make install prefix="$out"'';
|
|
|
|
|
2013-11-21 10:19:56 +00:00
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://pulkomandy.tk/projects/GrafX2";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2013-11-21 10:19:56 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = [ lib.maintainers.zoomulator ];
|
2013-11-21 10:19:56 +00:00
|
|
|
};
|
|
|
|
}
|