grafx2: 2.4.2035 -> 2.8.3091

authored by

John Chadwick and committed by
Anderson Torres
c9720580 3971f4c9

+30 -17
+30 -17
pkgs/applications/graphics/grafx2/default.nix
··· 1 - { lib, stdenv, fetchurl, SDL, SDL_image, SDL_ttf, zlib, libpng, pkg-config, lua5 }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , SDL 5 + , SDL_image 6 + , SDL_ttf 7 + , fontconfig 8 + , libpng 9 + , libtiff 10 + , lua5 11 + , pkg-config 12 + , zlib 13 + }: 2 14 3 15 stdenv.mkDerivation rec { 4 - 5 - version = "2.4.2035"; 16 + version = "2.8.3091"; 6 17 pname = "grafx2"; 7 18 8 19 src = fetchurl { 9 - url = "https://grafx2.googlecode.com/files/${pname}-${version}-src.tgz"; 10 - sha256 = "0svsy6rqmdj11b400c242i2ixihyz0hds0dgicqz6g6dcgmcl62q"; 20 + url = "https://pulkomandy.tk/projects/GrafX2/downloads/65"; 21 + name = "${pname}-${version}.tar.gz"; 22 + hash = "sha256-KdY7GUhQp/Q7t/ktLPGxI66ZHy2gDAffn2yB5pmcJCM="; 11 23 }; 12 24 13 25 nativeBuildInputs = [ pkg-config ]; 14 - buildInputs = [ SDL SDL_image SDL_ttf libpng zlib lua5 ]; 26 + buildInputs = [ 27 + SDL 28 + SDL_image 29 + SDL_ttf 30 + fontconfig 31 + libpng 32 + libtiff 33 + lua5 34 + zlib 35 + ]; 15 36 16 - preBuild = "cd src"; 17 - 18 - # Workaround build failure on -fno-common toolchains like upstream 19 - # gcc-10. Otherwise build fails as: 20 - # ld: ../obj/unix/tiles.o:/build/grafx2/src/global.h:306: multiple definition of 21 - # `Main_selector'; ../obj/unix/main.o:/build/grafx2/src/global.h:306: first defined here 22 - env.NIX_CFLAGS_COMPILE = "-fcommon"; 23 - 24 - preInstall = '' mkdir -p "$out" ''; 25 - 26 - installPhase = ''make install prefix="$out"''; 37 + makeFlags = [ "-C src" ]; 38 + installFlags = [ "-C src" "PREFIX=$(out)" ]; 27 39 28 40 meta = { 29 41 description = "Bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance"; ··· 31 43 license = lib.licenses.gpl2; 32 44 platforms = [ "x86_64-linux" "i686-linux" ]; 33 45 maintainers = []; 46 + mainProgram = "grafx2-sdl"; 34 47 }; 35 48 }