nixpkgs-suyu/pkgs/applications/science/misc/golly/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, wxGTK, perl, python2, zlib, libGLU_combined, libX11}:
2017-11-11 14:09:36 +01:00
stdenv.mkDerivation rec {
pname = "golly";
version = "3.2";
2017-11-11 14:09:36 +01:00
src = fetchurl {
sha256 = "0cg9mbwmf4q6qxhqlnzrxh9y047banxdb8pd3hgj3smmja2zf0jd";
2017-11-11 14:09:36 +01:00
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 = [
wxGTK perl python2 zlib libGLU_combined libX11
2014-09-24 12:07:00 +02:00
];
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 "$(
2017-02-10 09:28:13 +01:00
readlink -f ${python2}/lib/libpython*.so)")"
'';
meta = {
2017-11-11 14:09:36 +01:00
inherit version;
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;
2018-11-24 19:58:03 +01:00
downloadPage = "https://sourceforge.net/projects/golly/files/golly";
};
2014-09-24 12:07:00 +02:00
}