2016-08-10 19:21:06 +02:00
|
|
|
{stdenv, fetchurl, wxGTK, perl, python, zlib, mesa, libX11}:
|
2014-07-28 11:43:20 +02:00
|
|
|
let
|
2014-09-24 12:07:00 +02:00
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="golly";
|
2016-08-10 19:21:06 +02:00
|
|
|
version="2.8";
|
2014-09-24 12:07:00 +02:00
|
|
|
name="${baseName}-${version}";
|
2016-08-10 19:21:06 +02:00
|
|
|
hash="0a4vn2hm7h4b47v2iwip1z3n9y8isf79v08aipl2iqms2m3p5204";
|
|
|
|
url="mirror://sourceforge/project/golly/golly/golly-2.8/golly-2.8-src.tar.gz";
|
|
|
|
sha256="0a4vn2hm7h4b47v2iwip1z3n9y8isf79v08aipl2iqms2m3p5204";
|
2014-09-24 12:07:00 +02:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2016-08-10 19:21:06 +02:00
|
|
|
wxGTK perl python zlib mesa libX11
|
2014-09-24 12:07:00 +02:00
|
|
|
];
|
2010-06-23 09:41:17 +02:00
|
|
|
in
|
2014-11-10 10:31:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-09-24 12:07:00 +02:00
|
|
|
inherit (s) name version;
|
2010-06-23 09:41:17 +02:00
|
|
|
inherit buildInputs;
|
2014-09-24 12:07:00 +02:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2014-11-10 10:31:15 +01:00
|
|
|
|
|
|
|
sourceRoot="${name}-src/gui-wx/configure";
|
|
|
|
|
|
|
|
# Link against Python explicitly as it is needed for scripts
|
|
|
|
makeFlags=[
|
|
|
|
"AM_LDFLAGS="
|
|
|
|
];
|
|
|
|
NIX_LDFLAGS="-lpython${python.majorVersion} -lperl";
|
|
|
|
preConfigure=''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L$(dirname "$(find ${perl} -name libperl.so)")"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE
|
|
|
|
-DPYTHON_SHLIB=$(basename "$(
|
|
|
|
readlink -f ${python}/lib/libpython*.so)")"
|
2010-06-23 09:41:17 +02:00
|
|
|
'';
|
2014-11-10 10:31:15 +01:00
|
|
|
|
2010-06-23 09:41:17 +02:00
|
|
|
meta = {
|
2014-09-24 12:07:00 +02:00
|
|
|
inherit (s) version;
|
2010-06-23 09:41:17 +02:00
|
|
|
description = "Cellular automata simulation program";
|
2014-09-24 12:07:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
downloadPage = "http://sourceforge.net/projects/golly/files/golly";
|
2010-06-23 09:41:17 +02:00
|
|
|
};
|
2014-09-24 12:07:00 +02:00
|
|
|
}
|