git.iko.soy/typeable/nixpkgs
on master help sign in
golly-beta: init at 2.9b2 to test GL issues
commit47183c813eaa1d96bc76dce41c873f18eead4454 authorMichael Raskin <7c6f434c@mail.ru> dateWed 22 Mar 2017, 17:02 (10 years ago) parentec2c337
3 files changed+61
pkgs/applications/science/misc/golly/beta.nix+59 pkgs/applications/science/misc/golly/default.upstream+1 pkgs/top-level/all-packages.nix+1
pkgs/applications/science/misc/golly/beta.nixnew file+59
@@ -0,0 +1,59 @@
1+{stdenv, fetchurl, fetchgit
2+, wxGTK, perl, python2, zlib, mesa, libX11
3+, automake, autoconf
4+}:
5+let
6+ s = # Generated upstream information
7+ rec {
8+ baseName="golly";
9+ version="2.8";
10+ name="${baseName}-${version}";
11+ hash="0a4vn2hm7h4b47v2iwip1z3n9y8isf79v08aipl2iqms2m3p5204";
12+ };
13+in
14+stdenv.mkDerivation rec {
15+ name = "golly-${version}";
16+ version = "2.8.99.2.20161122";
17+ #src = fetchurl {
18+ # url="mirror://sourceforge/project/golly/golly/golly-2.8/golly-2.8-src.tar.gz";
19+ # sha256="0a4vn2hm7h4b47v2iwip1z3n9y8isf79v08aipl2iqms2m3p5204";
20+ #};
21+ src = fetchgit {
22+ url = "git://git.code.sf.net/p/golly/code";
23+ rev = "93495edf3c9639332c6eb43ca7149c69629ee5d8";
24+ sha256 = "1j308s9zlqkr3wnl1l32s5zk7r3g4ijwawkkysl8j5ik9sibi2gk";
25+ };
26+
27+ setSourceRoot = ''
28+ export sourceRoot="$(echo */gui-wx/configure)"
29+ '';
30+
31+ nativeBuildInputs = [autoconf automake];
32+
33+ buildInputs = [
34+ wxGTK perl python2 zlib mesa libX11
35+ ];
36+
37+ # Link against Python explicitly as it is needed for scripts
38+ makeFlags=[
39+ "AM_LDFLAGS="
40+ ];
41+ NIX_LDFLAGS="-lpython${python2.majorVersion} -lperl";
42+ preConfigure=''
43+ export NIX_LDFLAGS="$NIX_LDFLAGS -L$(dirname "$(find ${perl} -name libperl.so)")"
44+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE
45+ -DPYTHON_SHLIB=$(basename "$(
46+ readlink -f ${python2}/lib/libpython*.so)")"
47+
48+ sh autogen.sh
49+ '';
50+
51+ meta = {
52+ inherit version;
53+ description = "Cellular automata simulation program";
54+ license = stdenv.lib.licenses.gpl2;
55+ maintainers = [stdenv.lib.maintainers.raskin];
56+ platforms = stdenv.lib.platforms.linux;
57+ downloadPage = "http://sourceforge.net/projects/golly/files/golly";
58+ };
59+}
pkgs/applications/science/misc/golly/default.upstream+1
@@ -2,3 +2,4 @@ url http://sourceforge.net/projects/golly/files/golly/
22version_link '[-][0-9.]+/$'
33SF_version_tarball 'src'
44SF_redirect
5+minimize_overwrite
pkgs/top-level/all-packages.nix+1
@@ -17648,6 +17648,7 @@ with pkgs;
1764817648 gravit = callPackage ../applications/science/astronomy/gravit { };
1764917649
1765017650 golly = callPackage ../applications/science/misc/golly { };
17651+ golly-beta = callPackage ../applications/science/misc/golly/beta.nix { };
1765117652
1765217653 megam = callPackage ../applications/science/misc/megam { };
1765317654