2021-01-15 13:21:58 +00:00
|
|
|
{lib, stdenv, fetchgit
|
2019-11-10 16:44:34 +00:00
|
|
|
, wxGTK, perl, python2, zlib, libGLU, libGL, libX11
|
2017-03-22 16:02:41 +00:00
|
|
|
, automake, autoconf
|
|
|
|
}:
|
2018-07-20 18:56:59 +01:00
|
|
|
|
2017-03-22 16:02:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-03 09:05:50 +00:00
|
|
|
pname = "golly";
|
2017-03-22 16:02:41 +00:00
|
|
|
version = "2.8.99.2.20161122";
|
|
|
|
#src = fetchurl {
|
|
|
|
# url="mirror://sourceforge/project/golly/golly/golly-2.8/golly-2.8-src.tar.gz";
|
|
|
|
# sha256="0a4vn2hm7h4b47v2iwip1z3n9y8isf79v08aipl2iqms2m3p5204";
|
|
|
|
#};
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.code.sf.net/p/golly/code";
|
|
|
|
rev = "93495edf3c9639332c6eb43ca7149c69629ee5d8";
|
|
|
|
sha256 = "1j308s9zlqkr3wnl1l32s5zk7r3g4ijwawkkysl8j5ik9sibi2gk";
|
|
|
|
};
|
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
export sourceRoot="$(echo */gui-wx/configure)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [autoconf automake];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
wxGTK perl python2 zlib libGLU libGL libX11
|
2017-03-22 16:02:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Link against Python explicitly as it is needed for scripts
|
|
|
|
makeFlags=[
|
|
|
|
"AM_LDFLAGS="
|
|
|
|
];
|
2019-01-10 15:00:34 +00:00
|
|
|
NIX_LDFLAGS="-l${python2.libPrefix} -lperl -ldl -lGL";
|
2017-03-22 16:02:41 +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 "$(
|
|
|
|
readlink -f ${python2}/lib/libpython*.so)")"
|
|
|
|
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "Cellular automata simulation program";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2018-11-24 18:58:03 +00:00
|
|
|
downloadPage = "https://sourceforge.net/projects/golly/files/golly";
|
2017-03-22 16:02:41 +00:00
|
|
|
};
|
|
|
|
}
|