2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, autoconf, automake, allegro }:
|
2017-02-21 21:41:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "garden-of-coloured-lights";
|
2017-02-21 21:41:45 +01:00
|
|
|
version = "1.0.9";
|
|
|
|
|
2022-03-31 03:11:06 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
buildInputs = [ allegro ];
|
2017-02-21 21:41:45 +01:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
noInline='s/inline //'
|
|
|
|
sed -e "$noInline" -i src/stuff.c
|
|
|
|
sed -e "$noInline" -i src/stuff.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/garden/${version}/garden-${version}.tar.gz";
|
|
|
|
sha256 = "1qsj4d7r22m5f9f5f6cyvam1y5q5pbqvy5058r7w0k4s48n77y6s";
|
|
|
|
};
|
|
|
|
|
2022-06-09 23:00:20 +02:00
|
|
|
# Workaround build failure on -fno-common toolchains:
|
|
|
|
# ld: main.o:src/main.c:58: multiple definition of
|
|
|
|
# `eclass'; eclass.o:src/eclass.c:21: first defined here
|
2023-02-19 20:23:32 +01:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-09 23:00:20 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-21 21:41:45 +01:00
|
|
|
description = "Old-school vertical shoot-em-up / bullet hell";
|
2023-01-21 22:41:12 +01:00
|
|
|
homepage = "https://garden.sourceforge.net/drupal/";
|
2018-02-12 07:18:12 +01:00
|
|
|
maintainers = with maintainers; [ Profpatsch ];
|
2017-02-21 21:41:45 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|