2021-01-17 00:15:33 +00:00
|
|
|
{lib, stdenv, fetchurl, wxGTK, perl, python2, zlib, libGLU, libGL, libX11}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "golly";
|
|
|
|
version = "3.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8";
|
|
|
|
url="mirror://sourceforge/project/golly/golly/golly-${version}/golly-${version}-src.tar.gz";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wxGTK perl python2 zlib libGLU libGL libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
setSourceRoot = ''
|
|
|
|
sourceRoot=$(echo */gui-wx/configure)
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Link against Python explicitly as it is needed for scripts
|
|
|
|
makeFlags=[
|
|
|
|
"AM_LDFLAGS="
|
|
|
|
];
|
|
|
|
NIX_LDFLAGS="-l${python2.libPrefix} -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 ${python2}/lib/libpython*.so)")"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "Cellular automata simulation program";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
downloadPage = "https://sourceforge.net/projects/golly/files/golly";
|
|
|
|
};
|
|
|
|
}
|