depot/third_party/nixpkgs/pkgs/applications/graphics/grafx2/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

48 lines
922 B
Nix

{ lib
, stdenv
, fetchurl
, SDL
, SDL_image
, SDL_ttf
, fontconfig
, libpng
, libtiff
, lua5
, pkg-config
, zlib
}:
stdenv.mkDerivation rec {
version = "2.8.3091";
pname = "grafx2";
src = fetchurl {
url = "https://pulkomandy.tk/projects/GrafX2/downloads/65";
name = "${pname}-${version}.tar.gz";
hash = "sha256-KdY7GUhQp/Q7t/ktLPGxI66ZHy2gDAffn2yB5pmcJCM=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
SDL
SDL_image
SDL_ttf
fontconfig
libpng
libtiff
lua5
zlib
];
makeFlags = [ "-C src" ];
installFlags = [ "-C src" "PREFIX=$(out)" ];
meta = {
description = "Bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance";
homepage = "http://pulkomandy.tk/projects/GrafX2";
license = lib.licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = [];
mainProgram = "grafx2-sdl";
};
}