tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Update golly
Michael Raskin
11 years ago
9ae10b2c
86772c4e
+30
-48
4 changed files
expand all
collapse all
unified
split
pkgs
applications
science
misc
golly
default.nix
default.upstream
src-for-default.nix
src-info-for-default.nix
+26
-34
pkgs/applications/science/misc/golly/default.nix
···
1
-
x@{builderDefsPackage,
2
-
wxGTK, perl, python, zlib
3
-
, ...}:
4
-
builderDefsPackage
5
-
(a :
6
let
7
-
s = import ./src-for-default.nix;
8
-
helperArgNames = ["builderDefsPackage"] ++
9
-
[];
10
-
buildInputs = map (n: builtins.getAttr n x)
11
-
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
0
0
0
0
0
0
0
12
in
13
-
rec {
14
-
src = a.fetchUrlFromSrcInfo s;
15
-
16
-
inherit (s) name;
17
inherit buildInputs;
18
-
19
-
/* doConfigure should be removed if not needed */
20
-
phaseNames = ["setVars" "doConfigure" "doMakeInstall"];
21
-
setVars = a.noDepEntry ''
22
-
export NIX_LDFLAGS="$NIX_LDFLAGS -lperl -L$(echo "${perl}"/lib/perl5/5*/*/CORE)"
23
-
pythonLib="$(echo "${python}"/lib/libpython*.so)"
24
-
pythonLib="''${pythonLib##*/lib}"
25
-
pythonLib="''${pythonLib%%.so}"
26
-
export NIX_LDFLAGS="$NIX_LDFLAGS -l$pythonLib"
27
-
echo "Flags: $NIX_LDFLAGS"
28
'';
29
-
30
meta = {
0
31
description = "Cellular automata simulation program";
32
-
maintainers = with a.lib.maintainers;
33
-
[
34
-
raskin
35
-
];
36
-
platforms = with a.lib.platforms;
37
-
linux;
38
-
license = with a.lib.licenses;
39
-
gpl2;
40
};
41
-
}) x
···
1
+
{stdenv, fetchurl, wxGTK, perl, python, zlib}:
0
0
0
0
2
let
3
+
s = # Generated upstream information
4
+
rec {
5
+
baseName="golly";
6
+
version="2.6";
7
+
name="${baseName}-${version}";
8
+
hash="1n1k3yf23ymlwq4k6p4v2g04qd29pg2rabr4l7m9bj2b2j1zkqhz";
9
+
url="mirror://sourceforge/project/golly/golly/golly-2.6/golly-2.6-src.tar.gz";
10
+
sha256="1n1k3yf23ymlwq4k6p4v2g04qd29pg2rabr4l7m9bj2b2j1zkqhz";
11
+
};
12
+
buildInputs = [
13
+
wxGTK perl python zlib
14
+
];
15
in
16
+
stdenv.mkDerivation {
17
+
inherit (s) name version;
0
0
18
inherit buildInputs;
19
+
src = fetchurl {
20
+
inherit (s) url sha256;
21
+
};
22
+
preConfigure = ''
23
+
cd gui-wx/configure
0
0
0
0
0
24
'';
0
25
meta = {
26
+
inherit (s) version;
27
description = "Cellular automata simulation program";
28
+
license = stdenv.lib.licenses.gpl2;
29
+
maintainers = [stdenv.lib.maintainers.raskin];
30
+
platforms = stdenv.lib.platforms.linux;
31
+
downloadPage = "http://sourceforge.net/projects/golly/files/golly";
0
0
0
0
32
};
33
+
}
+4
pkgs/applications/science/misc/golly/default.upstream
···
0
0
0
0
···
1
+
url http://sourceforge.net/projects/golly/files/golly/
2
+
version_link '[-][0-9.]+/$'
3
+
SF_version_tarball
4
+
SF_redirect
-9
pkgs/applications/science/misc/golly/src-for-default.nix
···
1
-
rec {
2
-
version="2.4";
3
-
name="golly-2.4";
4
-
hash="06vajm019q4q4wfy6pc1669fbjqdb4jaxcc419bk0vzky40anl9w";
5
-
url="mirror://sourceforge/golly/golly-2.4-src.tar.gz";
6
-
advertisedUrl="http://downloads.sourceforge.net/project/golly/golly/golly-2.4/golly-2.4-src.tar.gz";
7
-
8
-
9
-
}
···
0
0
0
0
0
0
0
0
0
-5
pkgs/applications/science/misc/golly/src-info-for-default.nix
···
1
-
{
2
-
downloadPage = "http://sourceforge.net/projects/golly/files/golly";
3
-
method="fetchSFdirs";
4
-
fileSuffix="-src.tar.gz";
5
-
}
···
0
0
0
0
0