1 { lib, stdenv, fetchurl, autoconf, automake, allegro }:
3 stdenv.mkDerivation rec {
4 pname = "garden-of-coloured-lights";
7 nativeBuildInputs = [ autoconf automake ];
8 buildInputs = [ allegro ];
11 noInline='s/inline //'
12 sed -e "$noInline" -i src/stuff.c
13 sed -e "$noInline" -i src/stuff.h
17 url = "mirror://sourceforge/garden/${version}/garden-${version}.tar.gz";
18 sha256 = "1qsj4d7r22m5f9f5f6cyvam1y5q5pbqvy5058r7w0k4s48n77y6s";
21 # Workaround build failure on -fno-common toolchains:
22 # ld: main.o:src/main.c:58: multiple definition of
23 # `eclass'; eclass.o:src/eclass.c:21: first defined here
24 env.NIX_CFLAGS_COMPILE = "-fcommon";
27 description = "Old-school vertical shoot-em-up / bullet hell";
28 mainProgram = "garden";
29 homepage = "https://garden.sourceforge.net/drupal/";
31 license = licenses.gpl3;