mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
d5c702939c
svn path=/nixpkgs/trunk/; revision=30874
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
x@{builderDefsPackage,
|
|
wxGTK, perl, python, zlib
|
|
, ...}:
|
|
builderDefsPackage
|
|
(a :
|
|
let
|
|
s = import ./src-for-default.nix;
|
|
helperArgNames = ["builderDefsPackage"] ++
|
|
[];
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
in
|
|
rec {
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
inherit (s) name;
|
|
inherit buildInputs;
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
phaseNames = ["setVars" "doConfigure" "doMakeInstall"];
|
|
setVars = a.noDepEntry ''
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lperl -L$(echo "${perl}"/lib/perl5/5*/*/CORE)"
|
|
pythonLib="$(echo "${python}"/lib/libpython*.so)"
|
|
pythonLib="''${pythonLib##*/lib}"
|
|
pythonLib="''${pythonLib%%.so}"
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -l$pythonLib"
|
|
echo "Flags: $NIX_LDFLAGS"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Cellular automata simulation program";
|
|
maintainers = with a.lib.maintainers;
|
|
[
|
|
raskin
|
|
];
|
|
platforms = with a.lib.platforms;
|
|
linux;
|
|
license = "GPLv2";
|
|
};
|
|
}) x
|
|
|