2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoconf, automake, allegro }:
|
2017-02-21 20:41:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "garden-of-coloured-lights";
|
2017-02-21 20:41:45 +00:00
|
|
|
version = "1.0.9";
|
|
|
|
|
2022-03-31 01:11:06 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
buildInputs = [ allegro ];
|
2017-02-21 20:41:45 +00: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 21:00:20 +00: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 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-09 21:00:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-21 20:41:45 +00:00
|
|
|
description = "Old-school vertical shoot-em-up / bullet hell";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://garden.sourceforge.net/drupal/";
|
2023-07-07 10:52:12 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-02-21 20:41:45 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|