2018-02-24 14:12:44 +01:00
|
|
|
{stdenv, fetchurl, wxGTK, perl, python2, zlib, libGLU_combined, libX11}:
|
2017-11-11 14:09:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName="golly";
|
|
|
|
version = "3.1";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "0dn74k3rylhx023n047lz4z6qrqijfcxi0b6jryqklhmm2n532f7";
|
|
|
|
url="mirror://sourceforge/project/golly/golly/golly-${version}/golly-${version}-src.tar.gz";
|
2014-09-24 12:07:00 +02:00
|
|
|
};
|
2017-11-11 14:09:36 +01:00
|
|
|
|
2014-09-24 12:07:00 +02:00
|
|
|
buildInputs = [
|
2018-02-24 14:12:44 +01:00
|
|
|
wxGTK perl python2 zlib libGLU_combined libX11
|
2014-09-24 12:07:00 +02:00
|
|
|
];
|
2014-11-10 10:31:15 +01:00
|
|
|
|
2017-11-02 13:54:20 +01:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */gui-wx/configure)
|
|
|
|
'';
|
2014-11-10 10:31:15 +01:00
|
|
|
|
|
|
|
# Link against Python explicitly as it is needed for scripts
|
|
|
|
makeFlags=[
|
|
|
|
"AM_LDFLAGS="
|
|
|
|
];
|
2017-02-10 09:28:13 +01:00
|
|
|
NIX_LDFLAGS="-lpython${python2.majorVersion} -lperl";
|
2014-11-10 10:31:15 +01:00
|
|
|
preConfigure=''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L$(dirname "$(find ${perl} -name libperl.so)")"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE
|
|
|
|
-DPYTHON_SHLIB=$(basename "$(
|
2017-02-10 09:28:13 +01:00
|
|
|
readlink -f ${python2}/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 = {
|
2017-11-11 14:09:36 +01:00
|
|
|
inherit 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
|
|
|
}
|