2018-02-24 13:12:44 +00:00
|
|
|
{stdenv, fetchurl, wxGTK, perl, python2, zlib, libGLU_combined, libX11}:
|
2017-11-11 13:09:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-03 09:05:50 +00:00
|
|
|
pname = "golly";
|
2019-10-21 19:24:52 +01:00
|
|
|
version = "3.3";
|
2017-11-11 13:09:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-21 19:24:52 +01:00
|
|
|
sha256 = "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8";
|
2017-11-11 13:09:36 +00:00
|
|
|
url="mirror://sourceforge/project/golly/golly/golly-${version}/golly-${version}-src.tar.gz";
|
2014-09-24 11:07:00 +01:00
|
|
|
};
|
2017-11-11 13:09:36 +00:00
|
|
|
|
2014-09-24 11:07:00 +01:00
|
|
|
buildInputs = [
|
2018-02-24 13:12:44 +00:00
|
|
|
wxGTK perl python2 zlib libGLU_combined libX11
|
2014-09-24 11:07:00 +01:00
|
|
|
];
|
2014-11-10 09:31:15 +00:00
|
|
|
|
2017-11-02 12:54:20 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */gui-wx/configure)
|
|
|
|
'';
|
2014-11-10 09:31:15 +00:00
|
|
|
|
|
|
|
# Link against Python explicitly as it is needed for scripts
|
|
|
|
makeFlags=[
|
|
|
|
"AM_LDFLAGS="
|
|
|
|
];
|
2019-01-03 09:05:50 +00:00
|
|
|
NIX_LDFLAGS="-l${python2.libPrefix} -lperl";
|
2014-11-10 09:31:15 +00: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 08:28:13 +00:00
|
|
|
readlink -f ${python2}/lib/libpython*.so)")"
|
2010-06-23 08:41:17 +01:00
|
|
|
'';
|
2014-11-10 09:31:15 +00:00
|
|
|
|
2010-06-23 08:41:17 +01:00
|
|
|
meta = {
|
2017-11-11 13:09:36 +00:00
|
|
|
inherit version;
|
2010-06-23 08:41:17 +01:00
|
|
|
description = "Cellular automata simulation program";
|
2014-09-24 11:07:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-11-24 18:58:03 +00:00
|
|
|
downloadPage = "https://sourceforge.net/projects/golly/files/golly";
|
2010-06-23 08:41:17 +01:00
|
|
|
};
|
2014-09-24 11:07:00 +01:00
|
|
|
}
|