grafx2: 2.4.2035 -> 2.8.3091
This commit is contained in:
parent
3971f4c98c
commit
c97205806d
1 changed files with 30 additions and 17 deletions
|
@ -1,29 +1,41 @@
|
||||||
{ lib, stdenv, fetchurl, SDL, SDL_image, SDL_ttf, zlib, libpng, pkg-config, lua5 }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, SDL
|
||||||
|
, SDL_image
|
||||||
|
, SDL_ttf
|
||||||
|
, fontconfig
|
||||||
|
, libpng
|
||||||
|
, libtiff
|
||||||
|
, lua5
|
||||||
|
, pkg-config
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
version = "2.8.3091";
|
||||||
version = "2.4.2035";
|
|
||||||
pname = "grafx2";
|
pname = "grafx2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://grafx2.googlecode.com/files/${pname}-${version}-src.tgz";
|
url = "https://pulkomandy.tk/projects/GrafX2/downloads/65";
|
||||||
sha256 = "0svsy6rqmdj11b400c242i2ixihyz0hds0dgicqz6g6dcgmcl62q";
|
name = "${pname}-${version}.tar.gz";
|
||||||
|
hash = "sha256-KdY7GUhQp/Q7t/ktLPGxI66ZHy2gDAffn2yB5pmcJCM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ SDL SDL_image SDL_ttf libpng zlib lua5 ];
|
buildInputs = [
|
||||||
|
SDL
|
||||||
|
SDL_image
|
||||||
|
SDL_ttf
|
||||||
|
fontconfig
|
||||||
|
libpng
|
||||||
|
libtiff
|
||||||
|
lua5
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
preBuild = "cd src";
|
makeFlags = [ "-C src" ];
|
||||||
|
installFlags = [ "-C src" "PREFIX=$(out)" ];
|
||||||
# Workaround build failure on -fno-common toolchains like upstream
|
|
||||||
# gcc-10. Otherwise build fails as:
|
|
||||||
# ld: ../obj/unix/tiles.o:/build/grafx2/src/global.h:306: multiple definition of
|
|
||||||
# `Main_selector'; ../obj/unix/main.o:/build/grafx2/src/global.h:306: first defined here
|
|
||||||
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
|
||||||
|
|
||||||
preInstall = '' mkdir -p "$out" '';
|
|
||||||
|
|
||||||
installPhase = ''make install prefix="$out"'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance";
|
description = "Bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance";
|
||||||
|
@ -31,5 +43,6 @@ stdenv.mkDerivation rec {
|
||||||
license = lib.licenses.gpl2;
|
license = lib.licenses.gpl2;
|
||||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||||
maintainers = [];
|
maintainers = [];
|
||||||
|
mainProgram = "grafx2-sdl";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue